- Create, Commit, Check
Withdrawal method using (Create, Commit, Check)
Use this method if the final check is done on the platform side ie The platform will check that the transaction was paid and then updates their users wallet.
Using this method will require that the platform keeps polling xprizo in the event that there is no response from the xprizo to confirm that the transaction was created or not.
- Create a pending transaction on your system
- Create and commit a payment transaction on Xprizo and wait for the response.
api/Transaction/SendPayment?action=1
- If you receive an Ok Response (200), then the transaction was successfully processed and you can set your payment transaction as completed
- If you receive one of the following error codes (400,401,403,500), then the transaction did not complete and you should cancel your transaction (or correct the problem and try again)
- If you do not receive a response from Xprizo or a timeout you will need to keep checking Xprizo until you can determine the status of the transaction.
api/Transaction/StatusByReference
danger
If a timeout occurs, you cannot be sure if Xprizo actually completed the transaction, so you must have a process in place on your system to continue checking Xprizo to validate the status of the transaction. Only after to get a response can you either cancel or process the payment on your system