Transaction Verification
Learn how to verify transactions using the transaction ID
After charging your customer, you need to verify if the payment was successful before giving value to your customer. You must issue a transaction ID for every transaction.
Here are some important things to look out for when verifying the payment:
- Verify the transaction reference
- Verify the status of the transaction to be
successful
- Verify the
currency
to be the expected currency - Most importantly validate the amount paid to be equal to or at least greater than the amount of the value to be given
Here is a sample code of how to implement server-side validation in different programming languages:
Checkout Modal Customizations
You can make same request from client side using your public key
Payment Endpoint
https://api.coinforbarter.com/v1/transactions/:transaction_id/verify/checkout
Method: GET
Method: GET
Headers: Authorization: Bearer [PUBLIC_KEY]
Verification Response
Here is a simple verification response
Join Developers Channel on Slack
Join our developers channel to stay up to date on latest news and features. Find answers to your problems and network with other developers. Join Developers Channel.