Skip to main content

Stripe Payment Links or Checkout: which tracks better?

Both can carry an id to the payment. Links need no code but depend on the address. Checkout needs a server and is harder to break. Side by side.

Written by
The Totems team
Published
Updated
Reading time
4 minutes

Short answer

Which should I use, Payment Links or Checkout?

Use Payment Links if you have no developer. Add client_reference_id to the address and test it. Use Checkout Sessions if you have a server, because the id is set by your code and can also be saved on the payment itself. Both create a Checkout Session, so you read the result the same way.

Who this is for. People choosing how to take payments who also want to know where buyers came from.

On this page

Both end on the same kind of Stripe page. The difference is who writes the address: you by hand, or your server.

The short version

QuestionPayment LinkCheckout Session
Do I need code?NoYes, on a server
Where does the id go?In the addressIn your code
Can the buyer change it?Yes, it's visibleNo
Can it be dropped silently?Yes, if a character is wrongYou see an error or a blank in tests
Can the id be saved on the payment?One fixed value for everyoneYes, one for each buyer
Can I use it in a DM?YesNot without a page in between
One address for many people?YesNo, one for each buyer
  1. Your button

    Script adds the id

    ?client_reference_id

  2. Address

    Visible to the buyer

    v_51Xa

  3. Session

    Made by Stripe

    v_51Xa

  4. Webhook

    Comes back

    v_51Xa

Figure 1Payment Link. The id rides in the address, so anything that changes the address can lose it.Made-up example

If your script runs late, or the buyer opens a copied link, the id is missing or wrong. The payment still works, so nothing warns you.

How Checkout carries an id

  1. Your page

    Sends the id to you

    v_51Xa

  2. Your server

    Makes the session

    v_51Xa

  3. Session and payment

    Saved on both

    v_51Xa

  4. Webhook

    Comes back

    v_51Xa

Figure 2Checkout. Your server sets the id, so the buyer never touches it.Made-up example

You can also set metadata on the payment for each buyer. Stripe says that is done with payment_intent_data.metadata. On a Payment Link, that setting is the same for every buyer.

The same buyer, both ways

What survives in both

  • The email they type
  • The amount and product
  • The time of payment

What each one loses

  • Payment Link: the id, if the link was copied by hand
  • Checkout: nothing to copy, they must start again from your page
  • Both: the browser id from the phone
Figure 3A made-up buyer opens a link in a DM on a phone, then pays later on a laptop.Made-up example

Notice the email survives. That is why a good setup uses the id first and the email second.

A link is easy to share. A session is hard to break.

Choose in one minute

  1. No developer, or you sell in DMs? Payment Link, plus the test below.
  2. You have a server and sell subscriptions? Checkout.
  3. Both? Use Checkout on the site and a Payment Link for DMs.

The test

  • Pay with a test card from a link with an id. Read it in the event.
  • Pay from the same link with the id removed. It must still work.
  • Put a space in the id. See that Stripe drops it.
  • Open the link on a second device. Check whose id it carries.

What can go wrong

  • UTM tags on the link. Stripe puts them on your redirect address after payment. With Stripe's own thank-you message, you never see them.
  • Buy buttons and QR codes. A printed QR code holds one fixed address, so everyone shares one id. Leave the id off and use a separate code per place.
  • Old links. A deactivated Payment Link sends people to an expired page. Check your old posts.
  • Slow payment types. Bank debits and vouchers can take days. Wait until it is paid.

When not to use Totems

If you use a hosted shop with its own checkout, you can use neither of these, so our Stripe steps won't apply. If you sell ten times a year, a Payment Link and a notebook will do.

Totems works with both. Its script can add the visitor id to the checkout links you choose. We have not yet tested it with a live Stripe account.

Sources

  1. Stripe: Payment LinksChecked
  2. Stripe: Share a payment linkChecked
  3. Stripe: Track a payment linkChecked
  4. Stripe: CheckoutChecked
  5. Stripe: MetadataChecked
Read as MarkdownFound a mistake? Tell us: First version, from Stripe's own pages. We have not timed or tested a live account.
Questions

More questions.

Can't find it? Ask us.

Does a Payment Link make a Checkout Session?

Yes. When someone opens it, Stripe makes a Checkout Session and sends checkout.session.completed after payment. Your webhook code can be the same for both.

Can I put a different id in a Payment Link for each buyer?

Yes, by changing the address with client_reference_id. A metadata value set on the link itself is the same for everyone.

Can I use both?

Yes. Many people use Checkout on their site and a Payment Link in DMs. Keep the id rules the same in both.

Which one is cheaper?

We did not compare fees here. Stripe's price page for your country is the place to look, because prices differ by country and payment method.

Next note

No. 04

Stripe client_reference_id: a plain guide

What to put in client_reference_id, what Stripe drops without telling you, where it comes back, and copy-ready examples for links and Checkout.

Payments and StripeNo. 03

How to connect Stripe payments to your content

6 minute read

Payments and StripeNo. 15

Stripe fees for creators, with real sums

3 minute read

Put one link in your next post and follow it. 7 days free.

Start free trialView demo