How to integrate Xendit with SleepPRO™

Payment gateways

Here is how to connect Xendit, for selling in Indonesia or the Philippines.

You will need a Xendit account.

1. In SleepPRO™

  1. Click your profile picture, then Settings.
  2. Click Payment gateways, then Connect next to Xendit.
  3. The popup asks for your organization name, webhook secret and public and secret access tokens. Find these in Xendit.

2. In Xendit

API keys:

  1. In the left sidebar, click Settings, then Developers under Setup & Integration.
  2. Click + Generate secret key, choose the permissions in the popup and click Generate key. You may need to enter a 6-digit code sent to you.
  3. Copy your public key with the Copy button under Public key.
Your live secret key starts with xnd_production. It shows only once. If you lose it, delete it and generate a new one.
Your public key starts with xnd_public.

Webhooks:

  1. On the same Developers page, scroll to Webhooks.
  2. Click Enable auto-retry for failed webhook, so failed notifications retry automatically.
  3. Click View Webhook Verification Token, enter your password and click Confirm.
  4. Copy the token and paste it into your Xendit settings in SleepPRO™.
ScreenshotXendit webhook verification token

3. Currencies and restrictions

Xendit Indonesia:

  • Buyers: Indonesia. Subscriptions: yes. Currency: IDR.
  • Your Xendit account must be registered in Indonesia.

Xendit Philippines:

  • Buyers: Philippines. Subscriptions: yes. Currencies: PHP and USD.
  • Your Xendit account must be registered in the Philippines.

When a payment fails

After the first attempt, Xendit tries three more times, 7 days apart. You cannot change this delay.

Still stuck? We are here for you.

SleepPRO™ support is available 24/7 and usually replies within 12 hours, often sooner.

Send us an email