# API integration
Source: https://docs.sprintcheckout.com/api-integration
Introduction to get paid via direct API integration
Go to [API integration > Quickstart](/api-reference/sessions/quickstart) for an overview and detail API reference information.
## Features
### Static & dynamic amount
If you want the user to be able to modify the payemnt amount, you can do so. Just select "editable" amount. In this case you might want to set up a minimum amount as well.
### One off & permanent payment links
You can create payment links that experire when user sucessfully pays them. Or you can create payment links that can have multiple payments. This is useful for donation type of payment links.
### Cancel and Successful redirects
### Update payment sessions
# Create payment session
Source: https://docs.sprintcheckout.com/api-reference/sessions/create
POST /api/checkout/v2/payment_session
To get paid in cryptocurrency, you need to create a payment session object with the details of the purchase.
# Quickstart
Source: https://docs.sprintcheckout.com/api-reference/sessions/quickstart
Get paid creating payment sessions through our API.
If you're looking for a no code implementation, head over to [Payment Links](/payment-links).
## How to integrate Sprintcheckout payments API
On this guide you can learn how to [create a payment session](/api-reference/sessions/create) and get notification on to your backend via [webhooks](/api-reference/sessions/quickstart#to-integrate-with-sprintcheckeckout-api-follow-this-two-steps).
Below you can see a typical integration flow between an ecommerce and a payment gateway.
To integrate with Sprintcheckout API follow these two steps:
### A. Create payment session and receive a redirect url
Go to [create a payment session](/api-reference/sessions/create) for full API reference.
#### Example request
```bash cURL theme={null}
curl --request POST \
--url https://api.sprintcheckout.com/api/checkout/v2/payment_session \
--header 'Content-Type: application/json' \
--header 'X-SC-ApiKey: ' \
--data '{
"orderType": "STATIC",
"amount": 100.5,
"minAmount": 100.5,
"editable": true,
"currency": "USD",
"orderId": "inv-00010",
"successUrl": "",
"cancelUrl": ""
}'
```
#### Example response
You will receive a json like this:
```bash theme={null}
{
"sessionId": "NjVkY2MzNTI3N2YxZjEwYmE0OWVjN2M2",
"redirectUrl": "https://app.sprintcheckout.com/?uid=NjVkY2MzNTI3N2YxZjEwYmE0OWVjN2M2"
}
```
For some use cases a payment session can accept multiple payments (for example donation links). In that case you can do updates to the payment session, check full API reference on [update a payment session](/api-reference/sessions/update).
### B. Get payment updates via webhook
Received automatically when a payment status changes.
#### 1. Endpoint Setup
On the Notifications section, you can set up the endpoint to receive the order confirmation.
Set your webhook URL in the [Notifications section](http://dashboard.sprintcheckout.com/#/admin/notifications).
#### 2. Security
Requests include the header `X-Webhook-Api-Key` (or the key shown on your dashboard).
You should verify this matches your secret key to ensure the request is genuine.
#### 3. Payload Format
The payment notification message will be a JSON `POST` request with this format:
```json theme={null}
{
"event": "payment.succeeded",
"timestamp": 1769339152,
"orderId": "static-id-123",
"amount": 100.5,
"currency": "USD",
"token": "USDC",
"successUrl": "http://successurl.example",
"failUrl": "http://failurl.example",
"cancelUrl": "http://cancelurl.example",
"paymentSessionId": "0a77a733-4323-482c-b646-91cafd48ef6a",
"status": "SUCCESS",
"chain": "polygon",
"receipts": [
"https://polygonscan.com/tx/0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
]
}
```
#### 4. Status Values
Possible values for `status` include:
* `PENDING`: Payment initiated but not yet settled.
* `SUCCESS`: Payment successfully settled.
* `FAILED`: Payment failed or was rejected.
* `EXPIRED`: The session time limit was reached.
#### 5. Retry Policy & Idempotency
* **Retries:** If your server does not return a `200 OK` status, we will retry the notification multiple times (exponential backoff).
* **Idempotency:** Webhooks may be delivered more than once. Use the `paymentSessionId` or `orderId` to ensure you process each Event only once.
#### Dashboard Orders
On the [Dashboard > Notifications](http://dashboard.sprintcheckout.com/#/admin/notifications) section you can also find a table where you will find every order you receive via API.
# Update payment session
Source: https://docs.sprintcheckout.com/api-reference/sessions/update
PUT /api/checkout/v2/payment_session
# Fiat autosettlement
Source: https://docs.sprintcheckout.com/autosettlement
How to accept ERC-20 crypto assets and convert them to fiat instantly via the Coinbase API
To use the autosettle feature, you need to have a Coinbase account. Create one on [Coinbase.com](https://www.coinbase.com/)
## 1. Go to Set up > Payout settings > Coinbase
To begin, head over to Sprintcheckout dashboard set up section, and tap the Coinbase tab:
[Contact our team](https://t.me/joanseg) to add the network-token pairs you want to accept to your account.
## 2. Copy your Coinbase public address
## 3. Paste it on the Dashboard
Select the fiat or token for autosettlement (select "No" to disable autosettlement).
[Contact our team](https://t.me/joanseg) to add the fiat or token you want to swap to your account.
## 4. Go to Coinbase API and create an API key
Remember to check the "Trade" permissions checkbox.
Copy the API keys.
## 5. Paste the API keys into your account
## 6. Create a Payment link and test it
For testing purposes, we recommend selecting the light template and adding a small amount.
In this example, when the user pays with USDC, the funds will go to the Coinbase account and autosettle to the selected fiat, e.g. GBP.
# MCP server
Source: https://docs.sprintcheckout.com/mcp-server
Connect your coding agent to Sprintcheckout over MCP — read settings and orders, create payment links and API keys, with scoped consent you can revoke.
Sprintcheckout runs a remote [MCP](https://modelcontextprotocol.io) server so your **coding agent** —
Claude Code, Cursor, VS Code or any MCP client — can do the things you would otherwise do by hand in
the dashboard: read your payment settings, list paid orders, pull a receipt, create a payment link,
mint an API key. You authorize it once in the browser with your Sprintcheckout Google account, tick
the scopes you want to grant, and you can revoke it at any time from **Dashboard → Developers**.
Two different machines, two different docs. A **coding agent** integrates and configures your
account — that is this page. A **buying agent** pays you over x402 and needs no MCP at all; see
[x402 payment acceptance](/x402-payment-acceptance).
| | |
| ------------------- | ---------------------------------------------------------------------------------- |
| Endpoint | `https://mcp.sprintcheckout.com/mcp` |
| Transport | Streamable HTTP, **`POST` only** (a `GET` returns `405`) |
| Protocol versions | `2026-07-28` and `2025-11-25` |
| Authorization | OAuth 2.1 authorization code + **PKCE (`S256`)**, browser sign-in with Google |
| Client registration | **Client ID Metadata Documents** — no dynamic client registration, and none needed |
## Install
The server needs no API key and no local process — it is a URL. Every client below authorizes in
your browser the first time you use a tool.
```bash theme={null}
claude mcp add --transport http sprintcheckout https://mcp.sprintcheckout.com/mcp
```
Then run `/mcp` and choose to authenticate. Claude Code opens the consent page in your browser.
To share the server with a repo instead, commit an `.mcp.json` at its root:
```json .mcp.json theme={null}
{
"mcpServers": {
"sprintcheckout": {
"type": "http",
"url": "https://mcp.sprintcheckout.com/mcp"
}
}
}
```
One click — [**Add Sprintcheckout to Cursor**](cursor://anysphere.cursor-deeplink/mcp/install?name=sprintcheckout\&config=eyJ1cmwiOiJodHRwczovL21jcC5zcHJpbnRjaGVja291dC5jb20vbWNwIn0=)
If the link does not open, paste this into your browser's address bar:
```text Cursor deeplink theme={null}
cursor://anysphere.cursor-deeplink/mcp/install?name=sprintcheckout&config=eyJ1cmwiOiJodHRwczovL21jcC5zcHJpbnRjaGVja291dC5jb20vbWNwIn0=
```
The `config` value is base64 of `{"url":"https://mcp.sprintcheckout.com/mcp"}`. Or edit
`~/.cursor/mcp.json` (global) or `.cursor/mcp.json` (per project) by hand:
```json .cursor/mcp.json theme={null}
{
"mcpServers": {
"sprintcheckout": {
"url": "https://mcp.sprintcheckout.com/mcp"
}
}
}
```
One click — [**Add Sprintcheckout to VS Code**](https://vscode.dev/redirect/mcp/install?name=sprintcheckout\&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fmcp.sprintcheckout.com%2Fmcp%22%7D)
Or from a terminal:
```bash theme={null}
code --add-mcp '{"name":"sprintcheckout","type":"http","url":"https://mcp.sprintcheckout.com/mcp"}'
```
Or commit `.vscode/mcp.json` to the workspace:
```json .vscode/mcp.json theme={null}
{
"servers": {
"sprintcheckout": {
"type": "http",
"url": "https://mcp.sprintcheckout.com/mcp"
}
}
}
```
Point the client at `https://mcp.sprintcheckout.com/mcp` as a **streamable HTTP** server. It
discovers everything else on its own:
```bash theme={null}
curl -i -X POST https://mcp.sprintcheckout.com/mcp \
--header 'Content-Type: application/json' \
--data '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
```
```http 401 Unauthorized theme={null}
HTTP/2 401
WWW-Authenticate: Bearer resource_metadata="https://mcp.sprintcheckout.com/.well-known/oauth-protected-resource", scope="settings:read orders:read"
```
The client follows `resource_metadata` to the protected-resource document, then to the
authorization server metadata, and runs the code + PKCE flow. See
[Discovery documents](#discovery-documents).
## Tools
`tools/list` returns **every** tool no matter which scopes you granted, and each description names
the scope it needs. That is deliberate: a coding agent can only ask you for a scope it can see.
| Tool | Scope | What it does |
| ------------------------ | ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| `get_payment_settings` | `settings:read` | Business details, configured chains and the tokens accepted on each. **Never returns your payout wallet address** — only whether one is set. |
| `list_orders` | `orders:read` | Paid orders, newest first, paged with `page` and `size`. |
| `get_receipt` | `orders:read` | A public receipt by `publicOrderId` (with or without the `TX-` prefix). |
| `list_api_keys` | `keys:read` | API keys **masked** — `…` plus the last four characters — and a count. Never cleartext. |
| `create_payment_session` | `sessions:write` | Creates a real payment link on your live account. |
| `create_api_key` | `keys:write` | Mints one API key and returns it **once**. It can never be read again. |
There is also one resource, `sprintcheckout://quickstart` (requires `settings:read`): a short
markdown quickstart rendered from your **live** account state — the chains and tokens you actually
accept, whether a payout address is configured, and the API base path.
### `create_payment_session`
Beyond `amount`, `currency` and `orderType` it takes:
* `editable` + `minAmount` — a buyer-chosen amount with a floor. `minAmount` on a fixed-amount
session is **refused**, not ignored.
* `chains` — narrow one session to specific chains and tokens, validated against what your account
accepts, and optionally naming a `publicAddress` that this one payment should go to.
```json Arguments theme={null}
{
"amount": 10.00,
"currency": "USD",
"orderType": "TRANSIENT",
"chains": [
{ "name": "base", "tokens": ["USDC"], "publicAddress": "0xAf1D…dA32" }
]
}
```
**Unknown arguments are refused by name, never silently ignored.** Calling a tool with an argument
it does not take does nothing and returns an error naming what it refused and what the tool
accepts. Nothing you asked for is quietly dropped.
## Scopes
Signing in grants the two read scopes. Everything else is **opt-in**, and the consent screen shows
each one in plain language with read and elevated clearly separated.
| Scope | Granted | What it allows |
| ---------------- | ---------------------- | --------------------------------------------------------------------------------------------------- |
| `settings:read` | On first authorization | Read payment settings and the quickstart resource. |
| `orders:read` | On first authorization | Read paid orders and public receipts. |
| `sessions:write` | Opt-in | Create payment links on your live account, including links that name their own destination address. |
| `keys:read` | Opt-in | List API keys, masked. |
| `keys:write` | Opt-in | Mint new API keys. |
### Step-up: how a coding agent asks for more
Calling a tool you did not grant returns `403` naming exactly the scope it needs — all of them in a
single challenge, never one at a time:
```http 403 Forbidden theme={null}
HTTP/2 403
WWW-Authenticate: Bearer error="insufficient_scope", scope="keys:write", resource_metadata="https://mcp.sprintcheckout.com/.well-known/oauth-protected-resource"
```
Your client then re-runs the authorization asking for that scope, and you approve or decline it in
the browser.
You can also grant more than the coding agent asked for. The consent screen lists every grantable
scope; the ones the client requested are pre-ticked, the rest are unticked and yours to add. An
elevated scope is never pre-ticked for you.
## What a coding agent cannot do
**The payout wallet address on your account cannot be changed over MCP.** There is no tool for it,
no scope for it, and no checkbox on the consent screen that could grant one. The API refuses the
change even if it is attempted directly. Changing it is dashboard-only, by you, signed in.
There is a real exception you should understand before granting `sessions:write`: a payment link
created with `create_payment_session` **can name a destination address for that one payment**, and
x402 pays the address the link advertises. It cannot touch the address on your account, and it
cannot redirect any other payment — but it can direct the payment it creates. Grant `sessions:write`
only to a coding agent you would trust to take a payment on your behalf.
Beyond that:
* **API keys are never readable.** `create_api_key` returns a key once; `list_api_keys` masks every
value, including the one just minted. Store it immediately or it is lost.
* **Minting is capped twice** — 5 keys per 24 hours per authorization, and 25 keys on the account.
* **`get_payment_settings` contains no wallet address anywhere**, only a configured/not-configured
boolean per chain.
* **Every tool call is audited**, including refused ones. Arguments are recorded as a SHA-256 digest,
never in the clear.
* Tool calls are rate-limited to 300 per hour per authorization.
## Managing and revoking access
Open **Dashboard → Developers → Authorized coding agents**. Every authorization is listed with the
client's name, its domain, the scopes you granted, the labels of any API keys it created, when you
authorized it and when it was last used.
**Revoking takes effect immediately.** The next request that coding agent makes is refused — the
server re-checks your grant on every single call, so a token already in its hands stops working the
moment you revoke, not when it expires. To use the server again, it has to be authorized again from
your editor.
## Discovery documents
Everything a client needs is published; you should never have to configure any of it by hand.
| Document | URL |
| ---------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| Protected resource metadata (RFC 9728) | `https://mcp.sprintcheckout.com/.well-known/oauth-protected-resource` — also served at `/.well-known/oauth-protected-resource/mcp` |
| Authorization server metadata (RFC 8414) | `https://mcp.sprintcheckout.com/.well-known/oauth-authorization-server` |
| Signing keys | `https://mcp.sprintcheckout.com/.well-known/jwks.json` |
```json .well-known/oauth-protected-resource theme={null}
{
"resource": "https://mcp.sprintcheckout.com/mcp",
"authorization_servers": ["https://mcp.sprintcheckout.com"],
"scopes_supported": ["settings:read", "orders:read"],
"bearer_methods_supported": ["header"],
"resource_documentation": "https://docs.sprintcheckout.com/mcp-server"
}
```
**Access tokens are bound to this server and worthless anywhere else.** Their audience is
`https://mcp.sprintcheckout.com/mcp`; presenting one to the regular Sprintcheckout API at
`api.sprintcheckout.com` returns `401`. Access tokens are short-lived and refreshed automatically
by your client, with refresh-token rotation.
**There is no dynamic client registration endpoint, on purpose.** DCR is deprecated as of MCP spec
`2026-07-28`; this server supports Client ID Metadata Documents instead, which every current client
above uses. A client that can only do DCR cannot connect.
# One-click payments
Source: https://docs.sprintcheckout.com/one-click-payments
Learn how One-click crypto payments® work.
One-click crypto payments® revolutionize the way users pay with crypto by eliminating the traditional two-step approval process. This innovative solution combines token approval and transfer into a single, gasless transaction, providing a seamless experience similar to traditional payment methods while maintaining the security and transparency of blockchain technology.
## Traditional payment flow
When making an ERC20 payment through a dapp, you are required to:
1. sign an allowance for the dapp to spend on your behalf
2. execute the transfer.
**Both transactions have gas costs that the user needs to pay in ETH.**
```mermaid theme={null}
sequenceDiagram
participant User
participant Wallet
participant DApp
participant ERC20
Note over User, ERC20: Approval Phase
User->>DApp: Click "Allow"
DApp->>Wallet: Request Allowance
Wallet->>User: Approve?
User->>Wallet: Approve
Wallet->>ERC20: Returns signed Allowance
Note right of Wallet: USER PAYS GAS IN ETH
ERC20->>ERC20: Check & update allowance
ERC20-->>User: Approval confirmed
Note over User, ERC20: Transfer Phase
User->>DApp: Click "Pay"
DApp->>Wallet: Request transferFrom
Wallet->>User: Sign transaction?
User->>Wallet: Sign transaction
Wallet->>ERC20: transferFrom (user, recipient, amount)
Note right of Wallet: USER PAYS GAS IN ETH
ERC20->>ERC20: Transfer tokens
ERC20-->>DApp: Transfer successful
DApp-->>User: Transaction successful (Blockexplorer url)
```
## One-click crypto payment® flow
When using one-click crypto Payment® through our dapp, you only need to:
1. Sign a permit function that bundles the allowance and transfer of funds.
**This permit function has no gas cost, so you don't need to pay any ETH.**
2. Our dapp requests to transfer the funds on your behalf, and we pay the gas in ETH.
```mermaid theme={null}
sequenceDiagram
participant User
participant Wallet
participant DApp
participant ERC20 as ERC20 (with Permit)
User->>DApp: Click "Pay"
DApp->>Wallet: Request permit signature
Wallet->>User: Permit signature?
User->>Wallet: Permit signature
Wallet->>DApp: Returns signed permit
DApp->>ERC20: UserOp (Allowance + Transfer)
Note right of DApp: DAPP PAYS GAS
ERC20->>ERC20: Validates signature & transfers tokens
ERC20-->>DApp: Success
DApp-->>User: Payment complete
```
## Technical Implementation
One-click crypto payments® leverage the EIP-2612 permit standard to create a more efficient token approval mechanism. Here's how it works:
1. **Permit Signature**: Instead of calling `approve()`, the dapp requests a permit signature from the user's wallet. This signature contains:
* The token approval amount (set to match the purchase amount)
* The deadline for the approval (set to 5 minutes only)
* The spender address (dapp)
* A nonce to prevent replay attacks
2. **Bundled Transaction**: The dapp then submits a single transaction that:
* Validates the permit signature
* Executes the token transfer
* Pays for all gas costs
3. **Security Features**:
* Time-bound approvals through deadlines (5 minutes only)
* Nonce-based signature verification
* Replay attack protection
* Atomic transactions (either both operations succeed or both fail)
## Benefits
One-click crypto payments® offer significant advantages for both users and merchants:
### For Users
* **Simplified Experience**: Single signature instead of two separate transactions
* **No ETH Required**: Users don't need to hold ETH for gas fees
* **Faster Checkout**: Transaction time reduced by half
* **Lower Costs**: No gas fees to pay for approvals
* **Better Security**: Time-bound approvals with automatic expiration
### For Merchants
* **Higher Conversion Rates**: Reduced friction leads to up to 30% more completed transactions
* **Better User Experience**: Customers are more likely to return
* **Gas Cost Control**: Predictable gas costs for the business
* **Competitive Advantage**: Stand out with modern payment solutions
* **Increased Trust**: Transparent and secure payment process
## Transaction costs
### Traditional allowance and transferFrom payment
| Step | |
| ------------ | :--------------: |
| Gas paid in | ETH |
| Gas Cost | On L2s few cents |
| Who pays Gas | User |
### With one-click crypto payments®
| Step | |
| ------------ | :-------------------: |
| Gas paid in | ERC20 |
| Gas Cost | On L2s under one cent |
| Who pays Gas | Merchant(ℹ︎) |
(ℹ︎) Merchants can limit the amount they want to sponsor. For example, 0.2% of the purchase value.
## Supported tokens and chains
| Chain | Tokens | Status |
| -------- | :----: | :------------: |
| Base | USDC | ✅ |
| Ethereum | USDC | *comming soon* |
| Optimism | USDC | *comming soon* |
| Arbitrum | USDC | *comming soon* |
| Base | USDT | *comming soon* |
| Ethereum | USDT | *comming soon* |
| Optimism | USDT | *comming soon* |
| Arbitrum | USDT | *comming soon* |
## Frequently Asked Questions
### What happens if a permit signature expires?
Permit signatures have a built-in deadline. If a signature expires before the transaction is processed, the user will need to sign a new permit. This is a security feature to prevent delayed or malicious transactions.
### Do I need to hold any ETH in my wallet?
No, you don't need to hold any ETH. All gas costs are covered by the merchant through the one-click payment system.
### Which wallets support one-click payments?
One-click payments are supported by all major Web3 wallets that implement the EIP-2612 standard, including MetaMask, Coinbase Wallet, Binance Web3 wallet, WalletConnect, and most other popular wallets.
### What happens if the transaction fails?
If a transaction fails, no tokens will be transferred from your wallet. The permit signature is only valid for a specific amount and time period, ensuring your funds remain secure.
### Can I set a custom approval amount?
The permit signature is built with the specific amount needed for the purchase.
### Is this solution secure?
Yes, one-click payments use industry-standard cryptographic signatures and follow the EIP-2612 specification. The system includes multiple security features like nonce verification and time-bound approvals.
# Overview
Source: https://docs.sprintcheckout.com/overview
Welcome to Sprintcheckout documentation. The knowledge base to get paid bankless, fast and cheap.
## Products
Explore the ways in which Sprintcheckout can help your business get paid.
Create a payment session with one API call. Try our API reference tool to familiarise with this endpoint.
Automatically generate endpoints from an OpenAPI spec
Create payment links on the dashboard, the easiest way to get paid.
## Dashboard
Head over to the [Dashboard](https://dashboard.sprintcheckout.com) and create instatly an account with your preferred Google account.
You can get started instantly on the payment links and woocommerce following the [Payment link](https://dashboard.sprintcheckout.com) and [Woocommerce plugin](https://dashboard.sprintcheckout.com) Wizards:
# Payment links
Source: https://docs.sprintcheckout.com/payment-links
Get paid sharing Sprintcheckout payment urls on your website, emails, chats,...
Best way to learn how to set up a payment links is by going to [Dashboard.sprintcheckout.com/start-here](https://dashboard.sprintcheckout.com/#/admin/start-here) and follow the wizard.
## Adding a 'Pay with Crypto' Payment link
A "Pay with Crypto" payment link on your website lets you easily start accepting cryptocurrency payments.
Payment links let you accept crypto payments on your website with minimal functionality.
You can create a link for each of your products, and have the button redirect to a static checkout URL for the given product.
You cannot change your prices at checkout with payment links. For more flexibility, use the [API integration](/api-integration).
### 1. Create Payment Link
1. In the Dashboard, navigate to the Get Paid section on the left menu.
2. Select New payment link.
3. Set up your payment link settings on the modal.
4. Click Create
### 2. Create Payment Button
1. Copy the Payment link.
2. Paste it into the following code block:
```bash html theme={null}
Pay with crypto
```
3. Place the button on your website.
## Features
### Templates
Payment links UI can show invoice details if needed. Select Invoiice on the template selector.
**Invoices**
If you need to get paid in crypto. The most professional and good looking option is Sprintcheckout Invoices.
**Light**
If you just need a simple payment UI, select the Light option under templates.
### Static and dynamic amount
If you want the user to be able to modify the payemnt amount, you can do so. Just select "editable" amount. In this case you might want to set up a minimum amount as well.
### One off and permanent payment links
You can create payment links that experire when user sucessfully pays them. Or you can create payment links that can have multiple payments. This is useful for donation type of payment links.
# WooCommerce
Source: https://docs.sprintcheckout.com/woocommerce
Start accepting payments in a couple of minutes with Sprintcheckout WooCommerce plugin.
The best way to set up Sprintcheckout plugin is to go to [Dashboard.sprintcheckout.com/start-here](https://dashboard.sprintcheckout.com/start-here) and follow the WooCommerce wizard.
This page outlines a step-by-step process on how to accept crypto payments on Woocommerce with Sprintcheckout as your partner.
## Setting up your Sprintcheckout account
To begin, head over to [https://sprintcheckout.com/](https://sprintcheckout.com/) and create a new account by clicking on the Sign Up button in the top-right corner.
### Start by adding the details of your store
After creating an account on Sprintcheckout, log into your account, and you’ll find yourself on the dashboard.
1. Click on Set up from the options on the left-hand side.
2. Add your store’s name, its URL, and the logo. You can do this by right-clicking on the logo at your store’s landing page and selecting ‘Copy link address’.
3. You may also add a brief description of your store.
The information you add in this section will be visible to buyers when they are redirected to the payment window during checkout. You can always come back and change the details of your business at a later point.
### You can now customize the payment parameters
1. Scroll down to Payout Settings. In the Wallets tab, you can enable or disable the networks you’d like to support, and paste your public wallet address.
2. Select the tokens you’d like to get paid in for each of the networks you choose.
3. Once you’re done with the payout settings, scroll back up and click on Save (top-right side of the page).
Once again, you can always adjust the payout settings in a future time. If there are any EVM chains you’d like to use that are not yet available, you can [contact us](https://t.me/jonseg) directly. We’ll be happy to add them for you.
## How to install the Sprintcheckout plugin
With your Sprintcheckout account all set up we can now download, install, and connect the Sprintcheckout plugin to your store.
1. Head back to the admin panel of your store and click on Plugins > Add New.
2. Type Sprintcheckout in the search tab and, when you find the plugin, click on Install Now.
3. Once downloaded, click on Plugins > Installed Plugins.
4. Scroll down, find Sprintcheckout, and click on Activate.
## Connect your Sprintcheckout account to your e-commerce store
You have successfully downloaded and activated the plugin. Now, let's connect the plugin with your Sprintcheckout account so you can start accepting payments. This stage consists of 10 steps.
1. Head back to your Sprintcheckout profile and click on Get paid > New API key
2. Go ahead and copy the newly generated API key
3. Head back to your store's admin panel and, from the column on the left, find Woocommerce > Settings.
4. From the menu bar on the top, click on Payments and scroll down to find Sprintcheckout in the list of payment methods.
5. Make sure Sprintcheckout is enabled. If it's not, you'll need to enable it manually.
6. Once enabled, click on Manage, paste the API key that you previously copied, and click on Save changes.
7. Now that that's done, go back to the Sprintcheckout dashboard and click on Fulfil from the column on the left side.
8. Find the Woocommerce Plugin section, and click on Connect. A pop-up window will prompt you to enter the site URL. Paste it and click on Authorize.
9. You will be redirected to a pop-up window from Woocommerce, where you will need to grant Sprintcheckout access to your store. This is the final step.
10. Click on Approve to complete the process. Sprintcheckout is now successfully connected to your e-commerce store. You can see an authorization check next to your site URL in the Fulfil section.
From now on, every time a payment is made, you can see its details from your store’s admin panel and the Fulfil section, directly from Sprintcheckout.
## Time to get paid
To better understand how Woocommerce crypto payments work for merchants, we need to have a brief look at the customer journey from start to finish. Depending on your store’s layout, the buyer will usually find a product, add it to the basket, proceed to checkout, provide their personal details, and place an order.
At that point, the buyer heads to the checkout page, where they can choose the payment method. If you’ve enabled Sprintcheckout, they will see an option to pay with crypto. When an order is placed, the user is redirected to a payment window where they can:
1. Select their preferred currency from the options you enabled;
2. Proceed to make a payment by clicking on the designated button;
3. Approve the payment in their wallet by clicking on Confirm.
Once the buyer confirms the outgoing payment, the transaction takes place. From that moment onwards, buyers can easily check the transaction details on Etherscan by clicking on the sentence highlighted below. As a merchant, you can easily check the latest payments from your admin panel by clicking on Woocommerce > Orders. Click on the order to review all the information you need to fulfill the order.
You can also review the order directly from the Fulfill section in your Sprintcheckout account, including a link to the Block Explorer to verify payment information. The Merchant orders section updates directly after a payment is made from your e-commerce store. Orders are sorted by date you have the option to label them for more convenience.
Congratulations your customers are now able to checkout and pay with crypto using Sprintcheckout bankless, fast and cheap payments.
# x402 payment acceptance
Source: https://docs.sprintcheckout.com/x402-payment-acceptance
Accept USDC on Base from buying agents over the x402 protocol — paid against a public payment session.
Sprintcheckout lets your merchants accept [x402](https://github.com/coinbase/x402) payments: a
**buying agent** (or any HTTP client) pays a payment session in **USDC on Base**, and the settled
payment shows up in your dashboard like any other order. Sprintcheckout wraps Coinbase's hosted x402
facilitator — it does not reimplement the protocol and never custodies funds.
Two different machines, two different docs. A **buying agent** pays you over x402 — that is this
page, and it needs no MCP at all. A **coding agent** integrates and configures your account; see
[MCP server](/mcp-server).
Your `X-SC-ApiKey` is a **secret server credential**. It authorizes creating and updating payment
sessions on your behalf. **Never** ship it to a buying agent, a browser, or any buyer-side code —
the machine that pays only ever needs the **public `sessionId`**.
## How it works
In **Settings → Wallet address**, set the Base wallet that should receive USDC. This existing
address is what the `402` challenge quotes as `payTo`. No x402-specific configuration is needed.
Your backend creates a session with your secret `X-SC-ApiKey` and receives a public `sessionId`.
Give it only the `sessionId` — never the API key.
It requests the x402 endpoint with the public `sessionId`, receives a `402 Payment
Required` quoting your wallet and the USDC amount, pays on Base, and retries with proof.
On success the payment is settled via Coinbase's facilitator and recorded as a paid order —
visible in your dashboard transaction list with a BaseScan receipt.
## 1. Merchant — create a payment session
This runs on **your** server, with your secret `X-SC-ApiKey`. The response `sessionId` is the public
identifier the buying agent will pay.
```bash cURL theme={null}
curl --request POST \
--url https://api.sprintcheckout.com/checkout/v2/payment_session \
--header 'X-SC-ApiKey: ' \
--header 'Content-Type: application/json' \
--data '{
"amount": 0.01,
"currency": "USD",
"orderType": "TRANSIENT",
"orderId": "agent-demo-001"
}'
```
```json Response theme={null}
{
"sessionId": "a7Xk9mQ2pR",
"redirectUrl": "https://app.sprintcheckout.com/?uid=a7Xk9mQ2pR"
}
```
A session created from the dashboard **Points of Sale / payment link** flow works exactly the same
way — its public `uid` is the `sessionId` the buying agent pays.
## 2. Buying agent — pay over x402
The buying agent uses **only the public `sessionId`** — no secret. A first request returns the
challenge:
```bash cURL theme={null}
curl -i https://api.sprintcheckout.com/checkout/v2/x402/session/a7Xk9mQ2pR
```
```http 402 Payment Required theme={null}
HTTP/1.1 402 Payment Required
Content-Type: application/json
{
"x402Version": 2,
"accepts": [
{
"scheme": "exact",
"network": "base",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"payTo": "0x986dd13ccab3b637032ebedd30ef8a7fea4d6184",
"maxAmountRequired": "10000",
"resource": "/checkout/v2/x402/session/a7Xk9mQ2pR",
"description": "x402 payment for session a7Xk9mQ2pR",
"mimeType": "application/json",
"maxTimeoutSeconds": 60,
"extra": { "name": "USD Coin", "version": "2" }
}
]
}
```
`maxAmountRequired` is in USDC base units (6 decimals — `10000` = `0.01` USDC). `payTo` is the
merchant's Base wallet from Settings. `network` is the x402 network name **`base`** (Base mainnet).
`extra` carries USDC's EIP-712 domain (`name`/`version`) that the agent's wallet signs the gasless
transfer against — `x402-fetch` reads it automatically, so you rarely handle it by hand.
The simplest way to pay is the official [`x402-fetch`](https://github.com/coinbase/x402) wrapper,
which handles the challenge, the on-chain USDC payment on Base, and the retry with the `X-PAYMENT`
proof header automatically:
```ts x402-fetch theme={null}
import { wrapFetchWithPayment } from "x402-fetch";
import { createWalletClient, http } from "viem";
import { privateKeyToAccount } from "viem/accounts";
import { base } from "viem/chains";
const account = privateKeyToAccount(process.env.AGENT_PRIVATE_KEY as `0x${string}`);
const wallet = createWalletClient({ account, chain: base, transport: http() });
// Wrap fetch so 402s are paid and retried automatically.
const fetchWithPayment = wrapFetchWithPayment(fetch, wallet);
const sessionId = "a7Xk9mQ2pR"; // public id, no API key
const res = await fetchWithPayment(
`https://api.sprintcheckout.com/checkout/v2/x402/session/${sessionId}`
);
console.log(res.status); // 200 once paid
console.log(await res.json());
```
**`x402-fetch` caps spend at 0.1 USDC by default.** To pay more, raise the limit:
`wrapFetchWithPayment(fetch, wallet, maxValue)` where `maxValue` is in USDC base units
(e.g. `BigInt(1_000_000)` for 1 USDC). Larger amounts also need the buyer wallet funded with
enough USDC on Base.
**Buyer-chosen (variable) amounts.** If the session was created with an editable amount, the agent
declares what it will pay with an `?amount=` query parameter (in the session's currency) on **both**
the initial request and the `X-PAYMENT` retry — e.g. `…/checkout/v2/x402/session/{sessionId}?amount=2.50`.
Without it, the `402` body asks for `?amount=` and echoes the `minAmount` floor.
Under the hood the second request carries the proof header and returns the resource:
```bash Retry with proof theme={null}
curl -i https://api.sprintcheckout.com/checkout/v2/x402/session/a7Xk9mQ2pR \
--header 'X-PAYMENT: '
```
```http 200 OK theme={null}
HTTP/1.1 200 OK
X-PAYMENT-RESPONSE:
{
"status": "SUCCESS",
"paymentSessionId": "6a3a46292b5c6620927c3b9f",
"payTo": "0x986dd13ccab3b637032ebedd30ef8a7fea4d6184",
"receipt": "https://basescan.org/tx/0x…"
}
```
`receipt` links the settled transaction on BaseScan; the same order appears in your dashboard
transaction list. The `X-PAYMENT-RESPONSE` header is the facilitator's base64 settlement response.
A durable, reference-keyed receipt for the settled order is also available at
`GET https://api.sprintcheckout.com/checkout/v2/orders/receipt/{publicOrderId}` — keyed by the
unguessable `publicOrderId`, not by the public `sessionId`.
## Response codes
| Status | Meaning |
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `200 OK` | Paid — the resource is returned. A request against an already-settled session also returns `200` **idempotently** (the session is never charged twice). |
| `404 Not Found` | Unknown or expired `sessionId`. |
| `422 Unprocessable Entity` | The merchant has no Base wallet configured in Settings, so no `payTo` can be quoted. |
| `402 Payment Required` | No payment yet, or the submitted proof is missing / invalid / insufficient — re-pay against the returned challenge. |
x402 settlement uses **mainnet USDC on Base** (network `base`, chain id `8453`). It is not available
on other chains or tokens. Settlement is performed by Coinbase's hosted CDP facilitator; Sprintcheckout
never holds funds. The buyer pays no gas — the transfer is a gasless EIP-3009 authorization the
facilitator submits on-chain.