#keymodded-payment-link
1 messages · Page 1 of 1 (latest)
@keen venture a PaymentLink doesn't get "confirmed" so you are likely misunderstanding the overall feature
Yes, and there can be multiple Checkout Session if multiple people follow the link
well, how do i check if a client paid via payment link ?
A PaymentLink creates a Checkout Session, so you listen to Checkout Session events to do the fulfillment
how do i get the checkout session id from the payment link ?
you don't, that's what I am trying to explain that you are misunderstanding
A PaymentLink allows you to configure a simple URL you give to many people to pay for the same thing. Say $10 for a coffee.
Once you have that URL, maybe no one will ever click it or pay, maybe one person will, maybe 2 or 2 millions
i'm not using the stripe API with a website, i'm doing in pure python so it's a little hard to do it w/o a site
Payment Link -> url -> Checkout Session for each individual customers
What you can do is configure the PaymentLink to send the customer back to your own website after each successful payment. This is covered in our docs here: https://stripe.com/docs/payments/payment-links#post-purchase
wait so what is the difference between session and payment link
A Session is ephemeral and represents one payment attempt for a given Customer. A PaymentLink is durable, you create one, get a URL and you can give that URL to anyone, today, tomorrow, next year, and it'll keep working
okay so yes if you just sell one thing to one person and want to create it on demand then a Session is better
you likely want to switch to https://stripe.com/docs/checkout/quickstart which shows how to do all of this
payment links are more to say put a link to a $15 ebook on your website and anyone can click and pay
well i want to sell different things to different peoples
or tweeting a link to your followers and such
Checkout seems to be what you need/want
well checkout is a session, i'm right ?
yes and no
Checkout is our product.
A Session is just the API resource you create to link to Checkout
that's the one I get above: https://stripe.com/docs/checkout/quickstart
oh i got it
sure!
i can set the checkout to expire for a defined time ?