Create credentials for an SDK app
An SDK app has a built-in PKCE flow for the default login. To use a custom login for the app, you need to set a PKCE flow for the custom login after you get app credentials. See set up authorisation code grant with PKCE for more information.
An account for the Developer Portal. If you don't have this, sign up for a developer account.
A bundle ID (iOS app identifier) or app package (Android app identifier).
A working and publicly available URL. It includes a redirect URI to direct your app users back to your app, after they authorise it to access their Zettle merchant data. For example,
awesomeapp://zettlelogin
. You will use it to get SDK credentials for a new app.If the URL is located at your local server, you can make the URL publicly available using ngrok.
Follow these steps to get new app credentials.
Log in to the Developer Portal.
Note: If you have just signed up with the Developer Portal, you will stay logged in and be directed to the Create app credentials page.
On your Dashboard, click Create app credentials.
Note: If you haven't created app credentials before, you will be directed to the Create app credentials page after logging in.
On the Create app credentials page, click Payments SDK for iOS or Payments SDK for Android to open the form with app information.
Fill in the form. For the OAuth Redirect URI field, fill it in with the URL that you have prepared.
Click Create credentials to create the app credentials.
Save the app credentials somewhere safe.
- To use custom login for the SDK app, see set up authorisation code grant with PKCE.