#benjam3960

1 messages · Page 1 of 1 (latest)

snow sluiceBOT
spare stirrup
#

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.

chilly dust
#

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

spare stirrup
#

that's exactly why

chilly dust
#

Is there any documentation to explain how I can build a simple page to generate a CheckoutSession

spare stirrup
chilly dust
#

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

spare stirrup
#

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.

chilly dust
#

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 ?

spare stirrup
#

I can't no

chilly dust
#

ok thank you for your help