Pay with Bp-Ecsrow
Add hosted escrow checkout to your store. Create agreements, retrieve transaction status and receive signed event notifications from your backend.
Open integrations →Create a checkout session
Use a server-side API key from your merchant workspace. The key determines the session’s environment. Keep keys and signing secrets on your backend.
POST /api/v1/checkout-sessions
Authorization: Bearer <YOUR_SERVER_API_KEY>
Idempotency-Key: order-1048
Content-Type: application/json
{
"service": "asic-miners",
"title": "Antminer S21",
"description": "One new miner with power supply",
"quantity": 1,
"amount": 250000,
"currency": "USD",
"buyerEmail": "buyer@example.com",
"inspectionDays": 3,
"deliveryTerms": "Insured delivery within 7 days",
"method": "USDT",
"details": {
"model": "S21",
"specifications": "200 TH/s",
"condition": "New"
}
}The authenticated merchant is the seller. The response contains id, status, mode and checkout_url. Amounts are integer USD cents. The same idempotency key and payload return the existing transaction; a changed payload returns 409. Buyer and seller accept the terms through their authenticated accounts.
Open checkout in a new tab
The returned checkout_url opens a focused page with the order summary, agreement, payment instructions and verification status. It does not open the buyer dashboard. Create the session on your backend and place its returned URL in a user-clicked link:
<a href="YOUR_API_RETURNED_CHECKOUT_URL" target="_blank" rel="noopener noreferrer"> Pay with Bp-Escrow </a>
Opening a new tab depends on the visitor’s browser settings. If you create the session after a click, show this link when the session is ready so the customer can open it without relying on an automatic popup.
Set up “Return to merchant”
Ask a Bp-Escrow administrator to approve your merchant display name and fixed HTTPS return URL under Accounts & staff → Merchant checkout destinations. New sessions save these settings and display return links at the top and bottom of the authenticated checkout. You can see your approved destination in Integrations. Return destinations cannot be overridden with checkout query parameters.
Include an optional order_reference (up to 120 characters) in your request to display your store’s order reference. Changing or removing a destination approval disables its old checkout return links. Sessions created without a configured destination remain usable but have no return link.
First-time buyers
Customers sign in with ChatGPT using the buyer email supplied in the order. New Bp-Escrow customers create a buyer profile inside checkout, then review the agreement. No identity documents are requested. Both parties must agree before instructions appear. The agreed amount includes the escrow fee, which is deducted from seller proceeds.
A return to your store is not proof of payment. A submitted transaction hash means awaiting verification. Use the transaction API or verified webhook events to determine when an order is funded.
Apply the service requirements
Use the service category that matches the order and include its required details. ASIC Miner orders accept USDT only. The API enforces the same category and payment restrictions as the website.
Look up the current status
GET /api/v1/transactions/:id
Keys can read only their merchant’s transactions in the same environment. A key cannot verify funding, accept delivery for the buyer or record settlement. Treat the transaction response as the current source of truth and revoke credentials that are no longer needed.
Verify webhook signatures
Every status event has a stable ID. Verify the Bp-Escrow-Signature header using HMAC-SHA256 over timestamp + "." + rawBody with your signing secret. Compare in constant time, reject timestamps more than five minutes old and deduplicate event IDs. Events may arrive more than once or out of order.
Manage delivery and retries
Admin approves each exact webhook hostname. Delivery uses exponential backoff, up to eight attempts. Failed or exhausted events can be requeued without changing their event ID. Inspect delivery history and retry due events from Integrations.
Due events are processed with site activity or an operations-configured dispatcher. Continuous retries while the site is idle require an active dispatcher schedule. External API clients must also satisfy the site’s access controls.
Environments and access
Test and live credentials are isolated. Use test credentials to validate your integration without transferring money. Use live credentials for real orders once live access is enabled by operations. Never reuse a test payment request for a real transfer.