E-commerce and payments

Stripe

Text customers a thank-you when they pay, and text yourself when a payment fails.

What you can do

  • Text a customer a thank-you when they pay.
  • Text yourself when a payment fails, so you can reach out the same day.
  • Send texts from your own Stripe webhook handler without ever texting twice for one payment.

How it connects

  • Recommended

    Zapier

    BlueBot’s Zapier app has a Send Text action and instant triggers for incoming texts and every change of state.

    Zapier in the docs
  • API

    Your own code calls BlueBot’s REST API and listens to its signed webhooks.

    API in the docs

Recipes

Three recipes to start from.

Set one up as written, or change it to fit how you work. The docs have the same recipes step by step.
01With Zapier

Thank customers when they pay

Starts when

When a payment succeeds in Stripe

  1. Collect a phone number at checkout.
  2. Start a Zap with Stripe’s trigger for a new successful payment.
  3. Add BlueBot’s Send Text action and map the customer’s phone to To.

The text it sends

Hi {{first_name}}, your payment came through. Thank you! Reply here with any questions.

From your own number

02With Zapier

Text yourself when a payment fails

Starts when

When a payment fails in Stripe

  1. Start a Zap with Stripe’s trigger for a failed payment.
  2. Add BlueBot’s Send Text action with your own number in To.
  3. Put the customer’s email and the failure message in Text.

The text it sends

Payment failed for {{customer_email}}: {{failure_message}}

From your own number

03With the API

Thank customers from your webhook handler

Starts when

Stripe’s checkout.session.completed event

  1. In the handler for checkout.session.completed, read customer_details.phone.
  2. Send the text with POST /v1/messages and the session’s ID as the Idempotency-Key, so a retried Stripe event never texts twice.
  3. Put the session ID in metadata to match BlueBot’s delivery webhooks to the order.

The text it sends

Hi {{first_name}}, thanks for your order! We’ll text you here when it ships.

From your own number

Try BlueBot free for 7 days.

You need a card to start the trial. After 7 days it’s $17.99 a month plus any tax, and you can cancel from your billing page at any time.