Transaction API
The transaction API is used to process your online card payments.
Last updated
Was this helpful?
The transaction API is used to process your online card payments.
Last updated
Was this helpful?
The payment transaction can be created using POST /transaction
endpoint.
To create a transaction you must first save the card.
Please review our documentation to follow the steps for card saving.
The POST /transaction
endpoint will return an PendingTransaction
and Transaction
object if the transaction is a success.
You can provide auto_capture=1
in the POST /transaction
api request which will capture transaction as soon as it is authorised and it will also return a transaction
with settled
status.
When a transaction requires an authentication you will have a PendingTransaction
with a status request_auth
The shopper should now be redirected to this URL which will handle the authentication.
This page will handle the authentication process and the shopper will be redirected back to return_url
in the POST /transaction
API request with pt_id
query parameter. So the user will be redirected back to https://your_redirect.url?pt_id=XYZPAY_5f68b795154a4
in the example.
You can now use GET /pendingTransaction/{pendingTransactionId}
in order find out the authentication result.
Otherwise the payment will only be pre-authorized and you will need to capture the payment manually using POST /tranasction/{transactionId}/capture
endpoint as described in documentation.
Need help?