How to register your own HitPay OAuth app

Register an OAuth app with HitPay and connect it to Tenklo

This guide shows you how to register your own app with HitPay to obtain your OAuth credentials (client id & secret). These are required to let your users grant your app access to their HitPay business.

Sign in to the HitPay dashboard

Sign in to the HitPay dashboard with an account that is an Owner or Admin of the business that will own the app.

To test against HitPay's sandbox, repeat this guide in the HitPay sandbox dashboard. Sandbox apps have their own client ID and secret, so create a separate Tenklo integration for them and select sandbox.hit-pay.com as the environment when connecting. The same applies to staging: use the HitPay staging dashboard and select staging.hit-pay.com.

Create a new app

  1. Go to Payments -> Developers and open the App Builder tab.
  2. Click New App.
  3. Fill in the App Name and optionally the Developer website and an icon.
  4. Under Redirect URIs, add the Tenklo callback URL: https://api.tenklo.dev/oauth/callback.
  5. Choose the Availability: Private limits the app to your own business, Public lets other HitPay businesses connect.
  6. Click Create.

Get your credentials

Copy the Client ID and the Client Secret. The secret is only shown once; if you lose it, use Regenerate Secret on the app.

Configure scopes in Tenklo

When configuring the integration in Tenklo, add the scopes your app needs. Available scopes are business:read, payments, commerce, and customer, plus their granular variants (e.g. payments:read, payments:refund). A parent scope such as payments also grants all of its payments:* children.

New apps can use business:read, payments, and commerce (and their children). HitPay silently drops any other scope the app hasn't been granted, so request access to customer scopes from HitPay before relying on them.

Good to know

  • Each Tenklo integration holds one set of credentials. Use one integration per HitPay environment, and choose the matching environment when connecting.
  • Only business Owners and Admins can authorize a connection. During authorization, the user picks which business to connect.
  • Access and refresh tokens are valid for one year. Each refresh issues a new refresh token.

For more details, see the HitPay OAuth documentation.


On this page