Skip to main content
Arc commerce shows how to add a USDC payment option to a credit-purchase flow. A buyer connects a wallet, sends USDC on Arc, and the server credits the account after a verified webhook event.

Preview

Flow

1

User connects wallet

The buyer authenticates and links a USDC-funded wallet to the storefront.
2

Selects credit amount

The buyer chooses how many credits to purchase from the available tiers.
3

Pays in USDC on Arc

The storefront initiates a USDC transfer to the merchant’s developer-controlled wallet on Arc.
4

Webhook delivers Transfer event

A webhook delivers a contracts.eventLog event. The server verifies the HMAC signature before crediting the buyer.
5

Server credits user balance

After verification, the server records the purchase in Supabase and updates the user’s credit balance.

Tech stack