#jack - firebase & payment element
1 messages · Page 1 of 1 (latest)
What exactly are you trying to do with payment links here?
Is something you're trying not working as you expect?
Hey there!
I'm looking at converting a current payment intent flow to payment links but i'm not sure if i can add metadata to payment links?
If i can add metadata then it isnt much different to how i create a payment intent and should be relatively easy to do.
Though do you guys handle the sending of payment links to the customer or would i handle that upon creation?
Ah, no, you can't. Payment Links are meant to be re-used by multiple customers, and not carry unique info.
If you're building this for each customer redirect yourself, I suggest you look at creating Checkout sessions directly instead.
(This is what payment links use under the hood in a re-usable way)
Using the Checkout session API, you absolutely can set custom metadata per customer.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ah i see, that does make sense!
Out of interest, do users have to leave the app to pay using the checkout session or can it be embedded as an iframe or similar in the page?
I needs to be the full page redirect, not an iframe. On mobile device its expected to work as a full webview for the major platform webviews, but there can be limitations with this for eg wallet payments or for certain framework webview implementations.
That's fine, i can have it open in a new window so the user doesnt lose their place in the app.
Thanks very much, i'll look into getting the checkout session sorted, im sure there are plenty of tutorials on doing it with a firebase function on trusty google.
NP - good luck with the work!