Both end on the same kind of Stripe page. The difference is who writes the address: you by hand, or your server.
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.
In Totems
Tools in this note
- Stripe
Names and marks belong to their owners. Showing one does not mean they endorse us.
On this page
| Question | Payment Link | Checkout Session |
|---|---|---|
| Do I need code? | No | Yes, on a server |
| Where does the id go? | In the address | In your code |
| Can the buyer change it? | Yes, it's visible | No |
| Can it be dropped silently? | Yes, if a character is wrong | You see an error or a blank in tests |
| Can the id be saved on the payment? | One fixed value for everyone | Yes, one for each buyer |
| Can I use it in a DM? | Yes | Not without a page in between |
| One address for many people? | Yes | No, one for each buyer |
How a Payment Link carries an id
Your button
Script adds the id
?client_reference_id
Address
Visible to the buyer
v_51Xa
Session
Made by Stripe
v_51Xa
Webhook
Comes back
v_51Xa
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
Your page
Sends the id to you
v_51Xa
Your server
Makes the session
v_51Xa
Session and payment
Saved on both
v_51Xa
Webhook
Comes back
v_51Xa
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
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
- No developer, or you sell in DMs? Payment Link, plus the test below.
- You have a server and sell subscriptions? Checkout.
- 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
- Stripe: Payment LinksChecked
- Stripe: Share a payment linkChecked
- Stripe: Track a payment linkChecked
- Stripe: CheckoutChecked
- Stripe: MetadataChecked