A Clover web app is a browser-based integration that uses our REST API utilizing OAuth to create a secure connection to your web app. Web apps redirect a merchant from the Clover dashboard to a developer's URL. Clover web apps offer a seamless experience that enables merchants to connect services through a central hub. Clover web apps create an alternate integration path for scenarios where a native, on-device experience may not be appropriate. Clover developers have used our OAuth protocol for reporting, analytics, ecommerce integrations, etc.
Clover maintains separate production servers for different market regions (US and EU Production). In addition, Clover provides a Sandbox server which is used for development and testing, and allows the use of Developer Kits. If you are new to Clover, you should begin by creating your sandbox developer account. Create a developer account at the Developer Dashboard. Verify your email address and test merchant account.
Go to the Developer Dashboard and click on your developer name in the top right of the screen to display all the merchants associated with your account, as well as to create additional merchants. This is also how you switch between test merchant accounts. From the main developer page, you should see see a green button near the top that says Create New App. Click this to the create an app and enter your app's information.
When your app has been added by an associated developer account, including your test merchant account, the app cannot be deleted and new apps cannot use the same name.
For web-based applications Clover uses OAuth 2.0. This provides you with a mechanism to get an API token for a particular merchant. If you are building an Android app for Clover devices which is simply a web view, you can get an access token from the Clover SDK. Please note these changes to Android SDK auth token generation: https://docs.clover.com/announcements/changes-to-android-sdk-auth-token-generation/. If you are building an Android app that will run on non-Clover devices, see this Android OAuth example. In order to use OAuth, you need to configure your app's Domain and Site URL by clicking Edit App from the Developer Dashboard.
This url is where merchants will be redirected after both installing your app and launching it from the merchant dashboard. It will also be where merchants land after you redirect to
/oauth/authorize and the merchant authenticates by logging in and/or selecting their merchant account as needed. You can override the post-authorization landing page by supplying a redirect_uri in your request to
A redirect_uri passed to
/oauth/authorizemust be a subpath of the selected Site URL. For example, if you specify a Site URL of
https://www.example.com/myapp, then in your OAuth request a redirect_uri of
https://www.example.com/myapp/setup is valid, but
https://example.com/setup is not valid.
Enter your application domain such as
http://localhost:8000for testing). The access token provided by the OAuth flow can be used for Cross Domain requests as long as they originate from this domain.
An app requires at least one pricing option before merchants, including your own test merchants, can install and launch the app. From the Developer Dashboard, click on the Edit Pricing link to launch and complete this step.
When you've finished developing your app, you can test as if you were a merchant installing and launching the app via the App Market. Click the Preview in App Market link.
Only merchant accounts that were created with your developer account will be able to see your app in the App Market without it first being published.
Click Install. Note that any permissions you have set are shown here for the merchant to accept, as well as any subscription levels. You can view subscription information through our REST API. You will then be redirected to your app's activation URL with the appropriate merchant ID and auth code. Use these query parameters for the Clover OAuth flow to access the merchant's data. For more information on OAuth, please see the OAuth page.
Updated over 1 year ago