Create Payment
To initiate a payment, your backend generates a hosted-payment URL. Customers open this URL, enter any required details, pick a payment method, and complete the transaction on Bead’s secure page.
Overview
Endpoint
POST /payments/crypto
(sandbox basehttps://api.test.devs.beadpay.io
)Supports crypto and digital-wallet payments
Redirects the shopper back to your
redirectUrl
when finished
Step 1: Authenticate
Use access_token
as a Bearer token for the payment request.
Step 2: Create a payment URL
Conditional customer data rule
If any field inside
customer
is sent, all of these fields become required:firstName
,lastName
,email
,address
,address2
,city
,state
,postalCode
,countryCode
.Omitting a required field returns HTTP 400 – ValidationError.
If you omit the entire
customer
object, the hosted page first asks the shopper for name and address (two short screens) before showing the payment-method screen.
Redirect the shopper to paymentUrls.url
.
Step 3: Handle customer redirection
After the shopper completes or cancels payment, Bead redirects the browser to your redirectUrl
. Use one of the status-confirmation methods below to determine the outcome.
Step 4: Confirm payment status
Option A – Webhook notifications (recommended)
Configure a webhook URL; your server receives real-time JSON payloads whenever statusCode
changes.
Option B – Polling
Status codes: 2 Completed • 3 Underpaid • 4 Overpaid • 7 Expired • 8 Invalid • 9 Cancelled
Next steps
Register your webhook URL or schedule polling.
Test end-to-end in sandbox.
When ready, request production credentials and switch to production endpoints.
Need help? Email
developers@bead.xyz
.
Last updated