You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Square支付iOS Demo应用支付测试失败(错误码6)求助

Fixing Square Sandbox SCCAPIErrorDomain Code=6 ("User not activated")

Hey there, I’ve run into this exact error before when working with Square’s Sandbox SDK, so let’s walk through the key fixes to get your payment Demo working:

  • Verify your Sandbox merchant account region
    Square’s payment services (even in Sandbox) are restricted to specific regions. If your Sandbox account is set to a region where Square doesn’t offer payment processing, you’ll hit this error. Head to your Sandbox Dashboard, check the merchant profile details, and make sure the region is one of Square’s supported markets (like the US, Canada, UK, Australia, etc.).

  • Complete Sandbox account activation steps
    Even in Sandbox, your merchant account needs to go through basic activation to enable payment processing. Log into your Sandbox Dashboard and look for any pending setup tasks—things like confirming business details, setting up a "virtual" bank account (Sandbox uses dummy info here, no real bank needed), or resolving any account status alerts. If there’s a prompt to "activate" the account, follow those steps.

  • Double-check your Sandbox credentials
    It’s easy to mix up production and Sandbox credentials by accident. Confirm that your Demo is using the Sandbox Application ID and Sandbox Access Token from your Square Developer Dashboard, not the production ones. A quick way to verify: Sandbox tokens start with sandbox-sq0atb- while production tokens start with sq0atb-.

  • Ensure you’re targeting the Sandbox API endpoint
    Make sure your Demo is sending requests to Square’s Sandbox endpoint (https://connect.squareupsandbox.com) instead of the production endpoint. Using the wrong endpoint with Sandbox credentials will cause authentication and account status errors like this one.

  • Check for account restrictions
    If none of the above works, log into your Sandbox Dashboard and check the account status page. Sometimes Sandbox accounts can get flagged for restrictions (even accidentally)—look for any notifications about a suspended or inactive account, and follow the steps to resolve it (usually just a few clicks in the Sandbox to reactivate).

Once you’ve gone through these steps, test the payment again with Square’s official Sandbox test cards (like 4111 1111 1111 1111 with any future expiration date and CVV). That should get your Demo up and running!

内容的提问来源于stack exchange,提问作者Bhadresh Mulsaniya

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.20 12:02:18