Skip to content

Connect SendGrid and Stripe

Start a client’s workflow in SendGrid and act in Stripe, or the other way round, on the client’s own accounts.

Each app by itself: SendGrid integration and Stripe integration, with how to connect it, its scopes and its limits.

What the pair is used for

  • After a Stripe Checkout or payment link is paid, SendGrid can send the buyer a receipt from one of the client’s dynamic templates within seconds.
  • An invoice paid in full can email the customer through SendGrid with the invoice number and the amount paid, and a declined payment can tell them what is still owed.
  • The main starter runs the other way. A click on a tracked link in a SendGrid email creates that person as a Stripe customer, ready to invoice.

Every way SendGrid and Stripe join

A workflow starts from a trigger in one app and runs a step in the other, on the client’s accounts. Where the library has a starter for it, it installs that pairing into a client switched off; any other pairing is two steps on the canvas.

From SendGrid to Stripe

Triggers in SendGrid with steps in Stripe
When this happens in SendGridThis runs in StripeHow fastStarter
An email bouncesCreate a customerWithin secondsInstall the starter
An email bouncesMake a payment linkWithin secondsTwo steps on the canvas
An email bouncesSend an invoiceWithin secondsTwo steps on the canvas
A link in an email is clickedCreate a customerWithin secondsInstall the starter
A link in an email is clickedMake a payment linkWithin secondsTwo steps on the canvas
A link in an email is clickedSend an invoiceWithin secondsTwo steps on the canvas

From Stripe to SendGrid

Triggers in Stripe with steps in SendGrid
When this happens in StripeThis runs in SendGridHow fastStarter
A customer pays (checkout or payment link)Send an emailWithin secondsInstall the starter
A customer pays (checkout or payment link)Send a template emailWithin secondsInstall the starter
An invoice is paidSend an emailWithin secondsInstall the starter
An invoice is paidSend a template emailWithin secondsInstall the starter
A payment failsSend an emailWithin secondsInstall the starter
A payment failsSend a template emailWithin secondsInstall the starter

Set up the starter

Create a customer in Stripe when an email bounces in SendGrid

  1. 1Install the starter into the client from Templates → Library. It lands switched off.
  2. 2Connect the client’s SendGrid, for “An email bounces”
  3. 3Connect the client’s Stripe, for “Create a customer”
  4. 4Switch it on. Within seconds: SendGrid tells us as it happens.

What it produces

The Stripe step as it runs for an example client, Lakeview Consulting, when Emma Collins asks for a consultation: each value the starter fills in.

Email
emma.collins@example.com

Setup notes for this pair

  • Stripe’s “Create a customer” does not look for an existing email, so every click by the same person makes another Stripe customer.
  • The plain emails print Stripe’s amount fields as whole cents beside a separate currency line. Format them in the text before a customer reads one.

Field mapping, starter by starter

Each value a starter’s step is given, and where it comes from. Words in brackets are filled in when it runs; change any of it after installing.

Create a customer for bounced emails

Create a customer in Stripe when an email bounces in SendGrid

The values Create a customer in Stripe when an email bounces in SendGrid sends
Stripe valueFilled from
Email[the email’s email, from SendGrid]

Create a customer for email clicks

Create a customer in Stripe when a link in an email is clicked in SendGrid

The values Create a customer in Stripe when a link in an email is clicked in SendGrid sends
Stripe valueFilled from
Email[the email’s email, from SendGrid]

Send an email for checkout payments

Send an email in SendGrid when a customer pays (checkout or payment link) in Stripe

The values Send an email in SendGrid when a customer pays (checkout or payment link) in Stripe sends
SendGrid valueFilled from
From[SendGrid: From address]
SubjectA customer pays (checkout or payment link): [the customer’s name, from Stripe]
TextA customer pays (checkout or payment link) in Stripe. Their email: [the customer’s email, from Stripe] Their name: [the customer’s name, from Stripe] Their phone: [the customer’s phone, from Stripe] Amount (in cents): [the customer’s amount total, from Stripe] Currency: [the customer’s currency, from Stripe]
To[the customer’s email, from Stripe]

Send a template email for checkout payments

Send a template email in SendGrid when a customer pays (checkout or payment link) in Stripe

The values Send a template email in SendGrid when a customer pays (checkout or payment link) in Stripe sends
SendGrid valueFilled from
From[SendGrid: From address]
Template ID[SendGrid: Template ID]
To[the customer’s email, from Stripe]

Send an email for paid invoices

Send an email in SendGrid when an invoice is paid in Stripe

The values Send an email in SendGrid when an invoice is paid in Stripe sends
SendGrid valueFilled from
From[SendGrid: From address]
SubjectAn invoice is paid: [the customer’s name, from Stripe]
TextAn invoice is paid in Stripe. Their email: [the customer’s customer email, from Stripe] Their name: [the customer’s name, from Stripe] Amount paid (in cents): [the customer’s amount paid, from Stripe] Currency: [the customer’s currency, from Stripe] Invoice number: [the customer’s number, from Stripe]
To[the customer’s customer email, from Stripe]

Send a template email for paid invoices

Send a template email in SendGrid when an invoice is paid in Stripe

The values Send a template email in SendGrid when an invoice is paid in Stripe sends
SendGrid valueFilled from
From[SendGrid: From address]
Template ID[SendGrid: Template ID]
To[the customer’s customer email, from Stripe]

Send an email for failed payments

Send an email in SendGrid when a payment fails in Stripe

The values Send an email in SendGrid when a payment fails in Stripe sends
SendGrid valueFilled from
From[SendGrid: From address]
SubjectA payment fails: [the customer’s name, from Stripe]
TextA payment fails in Stripe. Their email: [the customer’s customer email, from Stripe] Their name: [the customer’s name, from Stripe] Their phone: [the customer’s customer phone, from Stripe] Amount due (in cents): [the customer’s amount due, from Stripe] Still owed (in cents): [the customer’s amount remaining, from Stripe]
To[the customer’s customer email, from Stripe]

Send a template email for failed payments

Send a template email in SendGrid when a payment fails in Stripe

The values Send a template email in SendGrid when a payment fails in Stripe sends
SendGrid valueFilled from
From[SendGrid: From address]
Template ID[SendGrid: Template ID]
To[the customer’s customer email, from Stripe]

SendGrid and Stripe and their logos are trademarks of their owners, used here only to say what Thrum works with; no endorsement is implied.

Thrum is cooking.

Get early access and you’ll be among the first in. Early members get a launch perk.