Quick Start

Get started accepting USDC payments in minutes.

Prerequisites

  • A Bedrock account (sign uparrow-up-right)

  • An API key from your Settings page

  • A settlement wallet address (where you'll receive funds)

Step 1: Create a Charge

Create a payment charge when your customer is ready to pay:

curl -X POST https://api.bedrock.io/v1/charges \
  -H "X-API-Key: sk_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "orderId": "order-123",
    "amount": "25.00",
    "metadata": {
      "customerEmail": "[email protected]"
    }
  }'

Response

Step 2: Redirect to Payment Page

Redirect your customer to the paymentUrl:

The payment page allows customers to:

  1. Select their preferred network (Base, Optimism, etc.)

  2. Pay with a connected wallet or by sending directly

Step 3: Handle the Webhook

When payment is complete, you'll receive a webhook:

Verify the Webhook Signature

Step 4: Fulfill the Order

Once you receive the charge.completed webhook, fulfill the customer's order.

Example Integration

Node.js / Express

Next Steps

Last updated