Skip to content
Splashify Pro
Docs

Stripe

Connect Stripe and your customers get a WhatsApp message when their payment succeeds, or a message with next steps when it fails. Stripe signs every event, so only real payments from your Stripe account can send a message.

Before you start

  • A Stripe account. Test mode is fine for trying it out.
  • An approved WhatsApp template for each message you want to send. See Create a WhatsApp template. Most templates are approved within 24 hours.
  • Your WhatsApp number connected. See Connect WhatsApp (WABA).

Where to find your Stripe key

The app asks for one thing: the Webhook Signing Secret. Stripe creates it when you add our webhook URL to Stripe, so you copy the URL from our app first (steps 2 and 3 below). The secret starts with whsec_.

Connect Stripe

  1. Open Stripe in the app

    In the left sidebar, click Integrations. Under Payments, find Stripe (or type it in Search integrations) and click Connect.

  2. Copy the webhook URL

    Scroll down to Paste this URL in Stripe and click the copy button next to the URL.

  3. Add the endpoint in Stripe

    In your Stripe Dashboard, open Developers, then Webhooks, and add an endpoint (Stripe may call it a destination):

    • Endpoint URL: paste the URL you copied.
    • Events: pick payment_intent.succeeded and payment_intent.payment_failed.

    Save it. On the endpoint's page, find Signing secret and click Reveal. Copy the value that starts with whsec_.

  4. Paste the signing secret

    Back in our app, paste it into Webhook Signing Secret under Add your Stripe keys.

    The Stripe page with the Webhook Signing Secret filled in, 1 of 3 steps done, and the Payment Succeeded event below with no message yet
    Step 1: the signing secret from your Stripe endpoint
  5. Choose a message for each event

    Under Choose a message for each event there are two events: Payment Succeeded and Payment Failed. Click one to open it, pick a Template, check Send it to (Customer Phone), and under Fill the variables choose what goes into each blank, for example Customer Name and Payment Intent ID. The Preview shows the message.

    The Payment Succeeded event opened with the payment_thanks template, Send it to Customer Phone, the variables Customer Name and Payment Intent ID, and a preview. Payment Failed below sends payment_retry
    Step 2: one template for each event
  6. Click Connect Stripe

    Click Connect Stripe in the bar at the bottom. You will see Stripe is connected, and the top of the page says Active.

  7. Check that it works

    Make a test payment in Stripe's test mode. Then open the Activity tab on the Stripe page. You should see Sent, Message sent.

Getting the customer's phone number

A Stripe payment does not always carry a phone number. We look for it in this order:

  1. The payment's metadata, under the name phone.
  2. The shipping details, if you collect a shipping address with a phone number.
  3. The billing details.

If Activity says No phone number in the field you picked, ask your developer to add the customer's WhatsApp number (with the country code, for example 919876501234) to the payment's metadata as phone when the payment is created. The customer's name can be added the same way as name.

What you can put in the message

The amount is in the smallest unit

Stripe sends 5000 for $50.00. If you put Amount (cents) in the message, it shows 5000. Leave the amount out, or word the message around it.

Change, pause or disconnect

  • Change a message: open the event, make your change, then click Save changes at the bottom.
  • Pause: switch Active off on the right. Stripe events are ignored until you switch it back on.
  • Disconnect: click the ⋮ button at the top right, then Disconnect, and confirm.

If a message did not go out

Open the Activity tab.

More fixes are in Troubleshooting.