Affirm sandbox credentials
Every administrator on an Affirm account has a pair of sandbox API keys alongside the live ones, in Affirm’s sandbox merchant dashboard. See Affirm’s API keys guide for more detail.
-
Log in to Affirm’s sandbox merchant dashboard:
- United States: sandbox.affirm.com/dashboard/apikeys
- Canada: sandbox.affirm.ca/dashboard/signin
Only administrators can manage API keys. If you don’t have access to the Merchant Dashboard, ask the owner of your Affirm account for access.
-
Select API keys. The section is titled Sandbox API Keys, which shows you are in the sandbox rather than live.
-
Copy your Public API Key and Private API Key. Keep the private key confidential.
-
In a Shuttle sandbox account, enter your Merchant Name and the two sandbox API keys into the Affirm connection dialog. There is no sandbox switch on the dialog: in a sandbox account, payments go to Affirm’s sandbox. See Connecting Affirm.
These steps follow Affirm’s own pages and screens as of 20 November 2026. If they no longer match, Affirm’s linked pages are the reference.
Was this page helpful?
What went wrong?
Thanks for telling us.