Creating Payments
To initiate payments using Bead, integrators generate a secure hosted payment page URL. Customers complete their transactions directly on this hosted page, simplifying integration and ensuring security.
Overview
The Hosted Payment API lets you create unique, secure URLs for each transaction. Your customers follow these links to select their preferred payment method, including crypto and digital wallets.
Step 1: Authenticate
Obtain your access token by authenticating:
Authentication Example:
Authentication Response:
Use this access_token
for subsequent requests.
Step 2: Create a Payment URL
Use the /payments/crypto
endpoint to create a hosted payment page.
Request Example:
terminalId
Unique ID of your terminal
"abc123-terminal"
merchantId
Unique ID of the merchant
"merchant-001"
requestedAmount
Amount requested (in fiat)
100.00
paymentUrlType
Type of payment URL (web
)
"web"
reference
Your unique order reference
"ORDER123"
redirectUrl
URL customer is redirected after payment
"https://yourwebsite.com/payment-success"
Response Example:
Redirect your customer to paymentUrls.url
.
Step 3: Handle Customer Redirection
After payment completion, the customer is redirected back to your specified
redirectUrl
.You should use either Webhooks or Payment Status API to confirm payment status.
Next Steps
Set up Webhooks for real-time transaction updates.
Alternatively, use the Payment Status API for polling payment statuses.
For any integration questions, contact developers@bead.xyz.
Last updated