Skip to main content

Get access

Sapiom Pay is still in early access (EA), so the sandbox is only enabled per organization. After you sign up at app.sapiom.ai/signup, reach out to your Sapiom contact, and we’ll enable it for your org.

Enter Sandbox 🤘

From app.sapiom.ai, turn on the switch beside Sandbox in the sidebar. This tab switches to sandbox data, and a Test mode banner appears. Other tabs keep their current environment. Selecting the Sandbox label opens the Sandbox page. Use the adjacent switch to change the environment. To return to live data, click Switch to live data in the banner or turn the sidebar switch off.
Live and sandbox views of the Sandbox page, showing the sidebar switch off and on and the Test mode banner with Switch to live data

Sandbox mode is controlled by the switch beside Sandbox in the sidebar

Get a key

While the Test mode banner is visible, open Settings → API keys and click Create platform key. Give it a name and click Create. Click Reveal key, copy it, and save it securely. Then click Done. The key is shown only once. A key from Create key can’t create buyers. Below, we call it SAPIOM_SANDBOX_PLATFORM_KEY. Keep this key in your backend. Your agent uses a buyer key for one buyer at a time.

Create a sandbox buyer

Create a test buyer with your sandbox platform key. Requests with an sk_test_ key reach the sandbox at the same API address. Sapiom links returned in responses open sandbox pages.
Store the returned buyer id. Follow Manage buyers to create a key for that buyer. Below, we call it SAPIOM_SANDBOX_BUYER_KEY.

Save a test card

Create a setup link with a sandbox buyer key, open it, and save this test card: The sandbox saves only the test cards on the setup page. To test a different scenario, select one of these cards under Sandbox test cards: On any security code approval page, also use 123 as the security code.

Connect your agent

Connect your agent to the hosted MCP server with the sandbox buyer key. For example, in Claude Code:
See Connect your agent for other MCP clients.

Configure Browser Pay SDK

If your integration uses Browser Pay, pass the sandbox buyer key as apiKey. Keep baseUrl as https://api.sapiom.ai. Use the ID of the sandbox transaction your integration creates as transactionId:

Make a test purchase

Buy from Sapiom’s test store, https://sapiom-test-store.myshopify.com. It supports UCP checkout, so checking it with a sandbox buyer key returns supported:
Create a ucp_checkout transaction for the store’s Sapiom pen, gid://shopify/ProductVariant/68317504897245. Omit paymentCardId to use the buyer’s default card:
The purchase asks for the buyer’s security code. Open the security code link and enter 123, the test security code. The transaction is then ready to pay, so you can close that tab. See Authorize a transaction for how to read each step.