Skip to main content

Prepare your sandbox organization

  1. Sign in to the sandbox dashboard.
  2. Add an active Arc USDC settlement wallet to your organization.
  3. Create a test API key. It starts with gck_test_; keep it on your server.
  4. Use a buyer wallet with test funds on the sandbox network to complete checkout.

Create a payment

Set these environment variables in your terminal. Replace the placeholder with your test key; do not commit it.
Use a new idempotency key for each new payment attempt. Keep the same key and payload when retrying a timed-out request.
A new payment returns 201. An identical retry returns 200 with the same payment ID.

Open checkout

Redirect the buyer to the returned checkout_url. The hosted page connects their wallet and tracks the transaction. Store the payment id alongside your order in your database. You can also supply success_url and cancel_url with your own HTTPS URLs. The checkout provides links back to your store. Returning to your store does not prove that a payment succeeded.

Verify the result

Use the Retrieve a payment playground, or call the endpoint from your server:
Replace PAYMENT_ID with the creation response’s id. Fulfill only when your server verifies status: confirmed for the stored payment and expected order amount and asset. Add signed webhooks to receive updates automatically.