This quickstart will step through accepting crypto payments in USDC on the Ethereum Chain as an example. With exception to replacing a few values, these steps should also be followed when using different currencies and chains.


  1. Set up payment intent to pay with Crypto

  2. Acquire blockchain address customer will pay to

  3. Customer pays

  4. Receive payment

# 1. Pay with Crypto

Once the customer reaches checkout and confirms they would like to pay with USDC on Ethereum, send a request to [create a payment intent](🔗). Within this payment intent request you will specify the amount, currency, settlement currency, and chain.

Create a payment intent:

We do not synchronously return the deposit blockchain address.

If you wish, you can create “long-lived” payment intent at a sub-wallet level (e.g., one deposit address and sub-wallet per sender). Start by creating a deposit wallet using the [Create a Wallet](🔗) endpoint, then, send a request to create a continuous payment intent. Within this payment intent request specify the `type: "continuous"`, `currency`, `settlementCurrency`, `chain`, and `merchantWalletId` (optional) to receive funds into the sub-wallet instead of a master wallet.

# 2. Blockchain Deposit Address

To retrieve the blockchain deposit address, you have two options:

  1. Subscribe to webhook notifications

  2. Poll Circle APIs

## Option 1: Webhook Notification

To get up and running with the webhook notifications, please head over to the [notification quickstart](🔗). Once you have subscribed to the notifications, you will receive updates for the payment intent whenever the resource has been updated. In this case, when the `paymentMethods.address` has been set, a notification will be sent with a new `timeline` object possessing a `status` of `pending`.

## Option 2: Poll Payment Intent Endpoint

If you prefer to poll [get a payment intent](🔗), you can send get request until `paymentMethods.address` is present.

Retrieve payment intent:

# 3. Customer Sends Payment On-Chain

Once the deposit address is acquired `paymentMethods.address`, you will then provide it to the customer along with the amount and currency to be paid. The deposit address can be presented in two forms 1) as plain text that is easily copied 2) as a QR code to be scanned from an app.

From there, the customer will send a payment from their custodial or non-custodial wallet.

The customer must send payment prior to the `exipiresOn` time is reached.

# 4. Payment Received

Once Circle receives the payment on-chain, we will create a Payment resource that is associated with the Payment Intent. Additionally, we will update the state of the payment intent. Please see the state management timeline for more details.

## Option 1: Webhook Notifications

## Option 2: Retrieve Payment Intent and Payment

Retrieve a payment intent:

Retrieve a payment:

For blockchains that require a 'memo' or 'address tag' (XLM, HBAR, etc.), the optional `addressTag` field will be present in the `depositAddress` object.

# Gas Abstracted Payment: Network Fee Flexibility

In a regular payment, the customer pays for the gas fees (e.g., blockchain transaction fees). In a pull-based payment, the gas fees can be paid by you or by the customer. In the latter case, customers can pay via USDC on an EVM-compatible chain such as Ethereum rather than in a native token. For example, while making a USDC payment on Ethereum, the customer can pay for the gas in USDC rather than ETH. By doing so, the customer does not need native tokens and can solely rely on USDC for both gas and the actual payment. Gas fees and the preferences can be configured by working with Circle’s customer success team.

In the case where a customer is paying for gas, Circle makes a real-time gas fee estimate and adds that in the total amount of payment that the customer authorizes. There are four steps in the flow:

  1. Set up payment intent and acquire blockchain address for deposits

  2. Receive a typed message for customers to sign and authorize the payment

  3. Circle will receive the signature and broadcast the transaction for payment

  4. Receive payment

Refer to the Pay with Crypto section to set up payment intent and retrieve a blockchain address. Once that has been completed, follow the steps below for gas decoupled payments.

## 1. Get a Typed Message for Signing

Call the `GET: /payment/presign` endpoint to fetch the typed message. The two required parameters are `paymentIntentId` , which can be retrieved from the `GET: /paymentIntent` response or webhook notification; and `endUserAddress` which is the consumer wallet address.

## 2. Customers Sign the Transaction From Their Wallet

You will need to trigger the customer’s wallet using the response from `/presign`.

For example, if you use the [signTypedData function from wagmi](🔗), you will need to fill out the domain, types and values fields.

Once the customer signs into the wallet, you will receive a string of raw signatures.

## 3. Create a Crypto Payment with Customers’ Signature

With a customer’s raw signature, Circle can create a crypto payment with the POST /payment/crypto endpoint. After the payment has been created, Circle will be able to track the payment status following the instructions [here](🔗).

## 4. Payment Received

Refer to the [payments received](🔗) section for more details.