#piotr_webhooks
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1463934198577496353
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi ๐ can you elaborate, like in the middle of the Customer going through the checkout experience you want to forcibly expire that Checkout Session?
Hi toby, nice to meet you
that way me recomended AI
mainly I want abort payment as soon as I get information about customer do not exist in my data base
@civic socket I don't really get the question and what "abort" means.
abort mean Stripe do not accept finaly this payment
I want avoid situation when customer buy subscription before he regoster in data base
*register
Are you using Checkout and if so which version? The hosted one where you redirect the customer to us or something else?
Hard to say, I'm new . I'm connect stripe and Api now using CLI and commend listen, then set in API handle few events like : customer.created and check is e-mail in DB , if yes check checkout.session.completed
if emeil is not in DB I want any way stop payment process
May be I try ask in another way. I use payment links . Customer fill form method payment / e-mail/ name etc, then press button Confirm. So I hope after that my API start handle events and able to check (if I'm wrong please let me know) . Can I stop payment process after customer press button confirm if all data in form correct?
yeah I think that is overall a misunderstanding from you. When you use Checkout that way, we (Stripe) control the payment end to end. The Customer is created at the end after the payment succeeds so it doesn't make sense to block the Customer creation, they already paid. So I think you need to rethink your flow for example to collect the email address yourself first and only send them to Checkout
yeah that's impossible with PaymentLinks too. The whole point here is that we own the payment end to end without you having to writing any code
you can do what you're after but you do need to build a lot more of this yourself on your own page
I know , for some reason I wanted do it later
Thanks a lot you save more of my time !!!