#davidski42
1 messages ยท Page 1 of 1 (latest)
Hi
You can add a custom field to the PaymentLink:
https://stripe.com/docs/payment-links/customer-info#add-custom-fields
You can use the dropdown fields (Yes/No)
And track this later using webhooks:
https://stripe.com/docs/payment-links/customer-info#add-custom-fields:~:text=The custom fields,upon payment completion.
That then requires tracking for consent in two different places though, right? One in the custom fields for Payment Links and one in the standard consent locations if using full checkout functionality.
PaymentLinks are using Checkout in order to accept payment from customers, it's the same webhook events at the end that you need to track :
https://stripe.com/docs/api/events/types#event_types-checkout.session.completed
It's the same event, but the data will be in different parts of the checkout session structure, no?
I'm trying to keep the back end logic simple.
It's the same event, but the data will be in different parts of the checkout session structure, no?
No it's the same part
if you are using PaymentLinks with custom fields
But if you are looking for this:
https://stripe.com/docs/payments/checkout/promotional-emails-consent
then no you can't add this to PaymentLinks
Really? If I create a custom field in a paymentlink, that's going to go into custom_fields right? And if a customer goes through a different flow, their consent will go into consent_collection, right?
Yeah. That's what I was looking for. ๐
In taht case use custom fields for both flows (PaymentLinks and Checkout)
and don't use consent_collection field
But then I don't get the nice Stripe functionality for prompting, including privacy aware auto-opt in.
Yes unfortunately you can't.
Phooey. Okay. Thanks for the confirmation!
However what you can do is to create your own Web Link (same as Stripe PaymentLinks) which behinds creates a Checkout Session (with the consent_collection option) for each time a customer access your web link
Sure. That kinda defeats the point of having nocode paymentlinks though. ๐