Crypto Payments

Create Payment

Initiate crypto payment using this API endpoint:

Please note, to access this endpoint, please send the following header:

api-version: 0.2

This endpoint overrides version 0.1 with breaking changes. If no version header is specified, version '0.1' will be used and you will receive an error.

Once all our partners move to this endpoint the old one will be deprecated and the default version will be '0.2'.

Example API call using curl:

curl -X 'POST' \
  'https://api.qa.devs.beadpay.io/payments/crypto' \
  -H 'Authorization: Bearer {token}' \
  -H 'api-version: 0.2' \
  -H 'Content-Type: application/json' \
  -d '{
  "terminalId": "000000000000000000000000",
  "merchantId": "000000000000000000000000",
  "requestedAmount": 10,
  "paymentUrlType": 0,
  "reference": "123",
  "redirectUrl": "https://beadpay.io"
}'

Important: For security, the required email field in the customer object is the only email address to which refund instructions will be sent in the event of an overpaid, underpaid or invalid payment. Submit the customer's email only.

Note: Payment receipts issued via Issue a Receipt may be sent to any valid email address.

Example response:

{
  "trackingId": "c10b29e3c8104e0f8dc139c20d9eeb6c",
  "paymentUrls": {
    "type": "web",
    "url": "https://pay.qa.beadpay.io/6539fa89f0363f1722b377ef"
  }
}

The response contains:

  • trackingId to associate this payment to incoming webhooks to your specified webhook URL

  • Dictionary of paymentUrls with links to the Hosted Payment Page. For now, only Web URLs are supported.

After receiving the response, the payment app should redirect the user to the Hosted Payment Page where the customer payment interaction will be handled. All payment updates will be sent to the specified webhook URL for this terminal.

If redirectUrl is provided, the customer will be automatically redirected back to the specified link after completing payment at the Hosed Payment Page.

Possible values of paymentUrlType:

enum PaymentUrlType {
    Web = "web",
}

Issue a Receipt

To send a receipt to a customer, use the following endpoint:

You may specify email, phone number or both when issuing a receipt to a customer.

If you wish to issue a receipt to the customer via other means, such as a print, it is required to provide the following information for the customer:

Last updated