🔵Payment Flow
Last updated
Last updated
The CoinbarPay payment flow is designed to deliver a seamless and secure experience for both you as a merchant and your customers. This topic outlines the various steps involved in processing a cryptocurrency payment using CoinbarPay, starting from the initial request token creation until the user is redirected back to your web application.
The payment process begins by creating a request token through the CoinbarPay API. This token will be used to identify the transaction and securely pass essential information between your web application and the CoinbarPay Web Gateway.
To create the request token, make an API call with the necessary transaction details, such as the amount, currency, customer information, and any additional data required for processing the payment.
The API will respond with a unique token that represents the payment request and can be used to initiate the transaction.
Use the link to go :
Once you have received the payment request token from the API, you can redirect your customer to the CoinbarPay Web Gateway. To do this, you will need to construct a URL with the following format:
Use the link to go :
On the CoinbarPay Web Gateway, the user can choose their desired payment method type and select the cryptocurrency they wish to use for the transaction. Once they have provided the necessary payment information and initiated the transaction, CoinbarPay will handle the payment processing in the background.
After the user has completed their payment, CoinbarPay will automatically redirect the user back to your web application, specifically to the callback URL configured in the CoinbarPay Dashboard. This ensures a smooth return flow for the user, and you can use this opportunity to show a confirmation message or initiate post-payment processing.
CoinbarPay Payment Gateway will send the payment status to your backend callback url configured in CoinbarPay Dashboard (Service Configuration).