Deposit Using Card
Flow
Steps
- Create Deposit Transaction Using Card
- Wait for a callback.
- Check status.
After you have called the Transaction/CardDeposit endpoint, a payment request is sent to the Acquirer network to process the card payment. A pending transaction is also created and Xprizo will continue monitoring the Acquirer network until an approval or rejection is received.
If the card is 'Approved' (2DS) then the transaction will be added to the merchant's wallet and the API will return an 'Active' status. No further action is required.
If there is a problem creating the transaction then the API will return a status of 'Rejected'.
It is possible that a card is not processed immediately such as some kind of delay or the user might need to approve the transaction using another device, then a 'Pending' status will be returned.
In the case of 3DS, there could be a redirect to an alternate URL. In this case, a 'Redirect' status and URL is returned.
The Merchant will get updates on the status of the transaction via callbacks. To receive a callback, you will need to request to set this up on your Merchant account (the profile that is used to create this transaction). This can be done by going to settings/preferences and setting the "Approval Webhook" to point to a URL of your choice. You can also set this using Preference/SetApprovalWebhook
A callback will be sent when
- The pending transaction is created.
- The pending transaction is approved
- The pending transaction is rejected
You can use this link to see the response coming on this Webhook.
** You should, however, check the status, after you get a callback to confirm that the transaction was completed successfully. You can use Transaction/Status endpoint to check the status.