βΊοΈPayment Gateway
The CoinbarPay Payment Gateway is a secure web interface that allows your customers to select their preferred cryptocurrency and complete the payment process.
By following the steps in this topic, you will learn how to open the CoinbarPay Payment Gateway using the appropriate URL and understand what happens once the payment is executed, canceled, or times out.
Opening the Payment Gateway
To open the CoinbarPay Payment Gateway for a customer, you will need to construct a URL with the following format:
Replace the following placeholders with actual values for your specific transaction:
REQUEST_TOKEN
(requestToken): The payment request token received from the CoinbarPay API upon initiating a new payment request.SERVICE_CLIENT_ID
(serviceClientId): Your account's authentication key (Service Client ID).timestamp (timestamp): The current timestamp in milliseconds.
When directing the customer to this URL, they will be presented with the CoinbarPay Payment Gateway, where they can choose their preferred cryptocurrency to complete the payment.
Post-Payment Actions
Once the payment is either executed, canceled, or times out, CoinbarPay will perform the following actions:
(1) Backend Callback
The server will send a secure HTTP request to your configured BE_CALLBACK_URL
to update the payment status on your shop.
Here is an example of response sent by Coinbar Payment Gateway to your web shop :
SUCCESS Response :
FAILED/CANCELED Response :
As for incoming calls, the Payment Gateway will send its callback with SERVICE_CLIENT_ID
and SIGNATURE_TOKEN
to let your application manage securely the incoming calls.
(2) Frontend Redirect User
CoinbarPay will redirect the customer to the configured WEB_CALLBACK_URL
as set in the CoinbarPay Dashboard, in order to complete the payment flow.
Last updated