#benjam3960
1 messages · Page 1 of 1 (latest)
hi! don't email the URL from a CheckoutSession, that can't work.
Not sure about PaymentLinks, I'll look, but instead you can email the customer a link to your site, and when that link is visited, you call the CheckoutSession API and redirect the user to its URL.
ok, PaymentLinks won't work here since there is no payment, so a link to your site and then genearing the setup-mode CheckoutSession on demand seems like the way to go.
Why you are saying that I can't send the URL of a checkoutSession to a customer ? It works well, except for the 24 hours expiration
that's exactly why
Is there any documentation to explain how I can build a simple page to generate a CheckoutSession
it sounds like you already have that part working, so I'm not sure what extra documentation I could give. But https://stripe.com/docs/payments/save-and-reuse?platform=web&ui=checkout
I am looking for a documentation showing how Can i create a page calling Stripe API create New Session
In the example you send me, It shows how to add a button to a previous page
sure but you can modify it
all the button does is call a route on your backend server; that route can be called from somewhere else in whatever way you want to set up your system, without a frontend even
or like you can build a frontend page that immediately (in the window.onload function) makes a POST request to create-checkout-session without waiting for a button to be pressed, and include a link to that frontend page in your email to the customer; there's many different ways to do this depending on your exact envionment and requirements.
ok
As I'm using Shopify, can you recommend me a SaaS service to host easily this front end page and the back end server ?
I can't no
ok thank you for your help