βΊοΈRequest New Payment (web page)
Last updated
Last updated
To initiate a new payment request using the CoinbarPay API, you will need to provide specific parameters and call the appropriate endpoint.
Upon successfully processing this request, the CoinbarPay API will return a payment request token that you can use to initiate the payment process through the CoinbarPay Web Gateway, as described in the "Payment Flow" topic.
To make the API request, use the following :
POST
https://sandbox.coinbar.io/coinbar/api/v2/pay/gateway/request
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Here's an example of products JSON body parameter :
Valid response will contain request_token , that will be used to call the Payment Gateway
CBPAY-API-KEY*
String
{{SERVICE_CLIENT_ID
}}
Content-Type*
String
application/json
SIGNATURE*
String
{{SIGNATURE_TOKEN
}}
HMAC SHA-256 body validation
source*
String
String "web"
service_client_id*
String
{{SERVICE_CLIENT_ID
}}
payment_request_id*
String
Generated by Your application
input_coin*
String
"EUR"
products*
Array
Products, can be provided products details or just one product with total billing receipt. See the section below for more details
email*
String
Customer email
surname
String
Customer Last Name
name
String
Customer Name
user_id*
String
Generated by Your application
timestamp*
Number
TIMESTAMP
of your request in milliseconds
urlcallback
String
Custom webhook -- obslolete parameter