Skip to content
Splashify Pro
Docs

Xendit

Connect Xendit and your customers get a WhatsApp thank-you as soon as they pay a Xendit invoice. The message is sent for successful payments only. Xendit sends a verification token with every event, so only real payments from your account can send a message.

Before you start

  • A Xendit account.
  • An approved WhatsApp template for the message. See Create a WhatsApp template. Most templates are approved within 24 hours.
  • The customer's mobile number on each invoice. Pass it when you (or your website) create the invoice, or there is no number to send to.

Where to find your Xendit key

Connect Xendit

  1. Open Xendit in the app

    In the left sidebar, click Integrations. Under Payments, find Xendit and click Connect.

  2. Add your Xendit key

    Under Add your Xendit keys, paste the Webhook Verification Token.

    The Xendit page with the Webhook Verification Token filled in, 1 of 3 steps done, and the Choose the WhatsApp message step below with Send it to Payer Phone
    Step 1: the verification token from Xendit's webhook settings
  3. Choose the WhatsApp message

    Under Choose the WhatsApp message, pick a Template. Leave Send it to on Payer Phone. Under Fill the variables, choose what fills each blank, for example Payer Name, Amount and External ID (your own order reference).

    The Choose the WhatsApp message step with the payment_confirmed template, Send it to Payer Phone, the variables Payer Name, Amount and External ID, and a preview
    Step 2: the message every paid invoice sends
  4. Click Connect Xendit

    Click Connect Xendit in the bar at the bottom. You will see Xendit is connected.

  5. Add the webhook in Xendit

    Under Paste this URL in Xendit, click the copy button. In the Xendit Dashboard, open Settings, then Webhooks, paste the URL next to Invoices paid, and save.

  6. Check that it works

    Pay a test invoice. On the Xendit page in our app, open the Activity tab. You should see Sent, Message sent.

Check where the phone number is

After the first real payment, open the Activity tab and click the event. What Xendit sent shows the exact data. If the customer's number is not where Send it to looks, ask your developer to add the payer's mobile number when creating the invoice, or use a Generic webhook, where you can pick any field.

Successful payments only

If Xendit sends an expired or failed invoice, no message goes out. Activity shows it as Skipped, Failed or cancelled payment. The message is only sent for successful ones.

The ₹ button in chats (for accounts in India) sends payment links through Razorpay, Cashfree, PayU or Zoho Payments. It does not use Xendit.

What you can put in the message

Change, pause or disconnect

  • Change the message: make your change, then click Save changes at the bottom.
  • Pause: switch Active off on the right.
  • Disconnect: click the ⋮ button at the top right, then Disconnect, and confirm.

If a message did not go out

More fixes are in Troubleshooting.