Payment Status: Validating Transfer
When a user approves the payment transfer request in their wallet, this transaction exists on-chain. You can use the on-chain reference passed in with the create Transfer Request endpoint to find the exact transaction on-chain. Use /tx/payment-status endpoint to find the on-chain transaction. Provide a reference to this endpoint as a parameter that identifies the transaction associated with the order. If a transaction with the given reference can’t be found, the endpoint function will throw an error. There are a few reasons why this could be:
- Transaction is not yet confirmed
- Customer is yet to approve/complete the transaction
To call any of the stable-pay’s endpoints listed here you have to request an API-KEY
Validating the transaction
Once the endpoint function returns a signature, it confirms that a transaction that references the order has been recorded on-chain and logs the amount transfered with the recipient.