Redirect customers to a StablePay-hosted checkout page.
// 1. Create order
const order = await fetch('/api/v1/orders', {
method: 'POST',
body: JSON.stringify({
merchantId: 'YOUR_ID',
amount: '10.00',
chain: 'BASE_SEPOLIA'
})
});
const { id } = await order.json();
// 2. Redirect to checkout
window.location.href =
`https://stablepay.com/checkout?id=${id}`;
FEATURES:
★ No frontend code needed
★ PCI compliant
★ Built-in security
★ Returns to your site
CUSTOM API INTEGRATION
Build your own checkout UI using our REST API.
// Create order
POST /api/v1/orders
{
"merchantId": "xxx",
"amount": "10.00",
"chain": "BASE_SEPOLIA"
}
// Get order status
GET /api/v1/orders/:orderId
// Confirm payment
POST /api/v1/orders/:orderId/confirm
{
"txHash": "0xabc..."
}
FEATURES:
★ Full control over UX
★ Custom branding
★ Advanced features
★ Backend integration
LIVE DEMO
Try it yourself on Base Sepolia testnet
NEED TESTNET USDC?
Get free testnet USDC from the Base Sepolia faucet to test payments.