Quickstart
Follow these steps to quickly integrate Bead's Hosted Payment Page into your application. This guide provides a straightforward approach to authenticate, create payments, handle responses, and prepare your integration for production use.
Step 1: Request Sandbox Access
To begin, request sandbox credentials by contacting Bead developer support at developers@bead.xyz. You will receive:
API Key and API Secret
Terminal credentials for sandbox testing
Sandbox API Endpoint:
Authentication Endpoint:
Step 2: Authenticate
Authenticate using the provided sandbox credentials to obtain an access token.
Request Example
Response Example
Include this access_token
as a bearer token for all subsequent API requests.
Step 3: Create a Payment
Use the /payments/crypto
endpoint to generate a hosted payment URL.
Request Example
Response Example
Redirect customers to the URL provided in paymentUrls.url
.
Step 4: Handle Payment Webhooks
Configure your webhook URL with Bead support or using your boarding API credentials. Webhooks notify your server about transaction status changes.
Example webhook payload:
Key statusCode
values:
2
: Completed3
: Underpaid4
: Overpaid7
: Expired8
: Invalid9
: Cancelled
Respond with 200 OK
to acknowledge receipt.
Step 5: Test Integration
Use crypto testnet wallets to complete test transactions in the sandbox environment. Verify:
Payment URLs redirect correctly.
Webhooks deliver transaction statuses as expected.
Payment statuses are properly handled in your application.
Next Steps
Once your integration passes sandbox testing:
Request production credentials from Bead.
Update your configuration to use the production API endpoints.
For integration questions, contact developers@bead.xyz.
Last updated