• Home
  • >
  • Contactless Mobile Payment SMS via Stripe

Contactless Mobile Payment SMS via Stripe

  • COVID use case
  • SMS
  • Partner
  • Host on Twilio
  • Integrations

This template shows you how to create an invoice in Stripe based on an SMS prompt (in this case DONATE <AMOUNT>). The user can then pay through the link that was sent via SMS. Once the invoice is finalized, it will reply with a payment link.

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-payment-link-sms

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.