• Home
  • >
  • SMS Receipts for Stripe Payments

SMS Receipts for Stripe Payments

  • COVID use case
  • SMS
  • Partner
  • Host on Twilio
  • Integrations
  • Sends out an SMS to your customer when they pay you via Stripe
  • Uses Stripe webhooks events functionality to trigger the SMS
  • Uses Twilio Functions to host the webhook for Stripe

Functions
Functions with CLI

Step 1:

Access serverless version of this code on GitHub.

View on GitHub

Step 2:

Use this code sample in Twilio Functions UI to deploy on Twilio infrastructure.

Read instructions
Why use Twilio Functions?
No server management
Scales automatically
Easy to build proof of concepts
Secure by default

Step 1:

Install Node JS

https://nodejs.org/en/download

Step 2:

Install Twilio CLI

Learn more
npm install -g twilio-cli

Step 3:

Install CLI plugins

twilio plugins:install @twilio-labs/plugin-serverless

Step 4:

You need a account SID and auth token to get started.

Get a free API key
twilio login

Step 5:

Download the template and configure

twilio serverless:init example --template=stripe-sms-receipt

Step 6:

Host on Twilio with this command

cd example
twilio serverless:deploy
Why use Twilio Functions?
No server management
Scales automatically
Easy to build proof of concepts
Secure by default
Why use the Twilio CLI?
Fits in your DevOps flow
Version control
Use CLI to run on multiple environments (Dev, Stage, Prod)

Don't see what you want?

There was an issue loading the page.

Please try again in some time.