- If you don't already have a sandbox developer account, create one and then log in.
- On the developer dashboard, click the Create App button.
- On the Create App modal, give your sample app a name.
- Click Create.
To integrate with Clover Go devices, you will need to initialize the
CloverGoDeviceConfiguration object with the right initialization values. This includes the access token that you retrieve by going through the OAuth flow.
The access token is generated for a specific employee in order to provide the user context during a transaction.
On the Sandbox Dev Dashboard side nav, click the sample app you created.
On the App Settings, make sure to save your App ID and App Secret somewhere; you’ll need them for later.
- Change the App Type to be REST Clients > Web.
- Make sure that your app has disabled Customer Read/Write and Employees Write and enabled the rest of the permissions in App Settings > Requested Permissions.
Failure to set these permissions correctly will lead to an invalid access token, which will prevent the Clover Go SDK from being initialized.
- Edit your app’s REST Configuration. The Site URL should be your app’s URL. But if you don’t have one set up yet, you can use https://sandbox.dev.clover.com for now. Make sure the Default OAuth Response is CODE.
The developer portal does not currently accept non-http(s) URL schemes. If you have a custom URL scheme for native iOS and Android applications (such as myPaymentApp://clovergoauthresponse), send an email to [email protected] with your App ID and redirect URL request.
- Click the Market Listing tab and then click Preview in App Market.
The app preview page opens for your test merchant.
- If the app is not installed for your test merchant, click Connect > Accept to install the app. If the app is installed, click Open App.
A browser tab will open with a URL containing a CODE parameter, shown in the following example:
Save the CODE somewhere.
- Pass in the App ID, App Secret, and CODE you saved earlier into the following URL. Do not include the curly braces:
- Visit that URL in your browser and you should be provided with your access token.
If you receive an “Unknown Client ID” message, make sure the URL doesn't have any spaces in it, then visit the URL again.
Generating an OAuth code in production follows the same general steps as for sandbox. For more information, see Using OAuth 2.0.
Updated about 1 year ago