Mobile Payments SDK with Test Sandbox Account

Hi Team,

We are building our flutter mobile app and trying to integrate the Mobile Payments SDK where we can use Tap to Pay on iPhone feature directly using the inbuilt NFC reader.

We want to test the OAuth flow works properly where we can simulate a merchant logging in with their square account. I want to use the Sandbox Test account to test this flow, but i do have the password required to login and connect. It only shows the Access Token for the Test Account.

Can you please advise how can we test the OAuth Flow on our real test device using the sandbox credentials before we release an update.

Hi @quickopayments - in order to test OAuth using a sandbox account, you have to ensure that the browser on your device is already logged into a sandbox account with the dashboard open. You can login to your Sandbox dashboard by doing the following steps prior to going through the OAuth flow:

  1. Go to your Developer Dashboard
  2. Go to Sandbox Test Accounts
  3. Click “Square Dashboard” for the account you want to authorize to

If you then go through the OAuth flow in your app, it should register the sandbox account.

Let me know if that works for you, or if any other issues come up.