🛠 Integration Flow
- Generate API Keys Create API credentials from Coinbase Commerce.
- Add Webhook URL Set up your webhook to receive payment confirmation and status updates.
- Configure Accepted Assets Select which stablecoins to accept (e.g., USDC, DAI, USDT).
- Optional: Wrap with a Custom Checkout Handler
We can build a secure
POST /checkout
endpoint in your app to initiate Coinbase Commerce checkouts dynamically.
📦 Example: Create a Checkout
When creating a checkout session, send a request with the following payload:Sample Response:
- The
hosted_url
is the secure payment page for customers to complete their transaction. - The
id
can track payment status or query transaction details later.
📚 Additional Notes
- Coinbase Commerce handles currency conversion automatically if the customer chooses to pay in a supported stablecoin.
- You can track webhook events, such as charge:confirmed, to update order statuses in your system.