#piotr_webhooks

1 messages ยท Page 1 of 1 (latest)

zealous yarrowBOT
#

๐Ÿ‘‹ 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.

fallen mesa
#

Hi ๐Ÿ‘‹ can you elaborate, like in the middle of the Customer going through the checkout experience you want to forcibly expire that Checkout Session?

civic socket
#

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

inland sinew
#

@civic socket I don't really get the question and what "abort" means.

civic socket
#

abort mean Stripe do not accept finaly this payment

#

I want avoid situation when customer buy subscription before he regoster in data base

#

*register

inland sinew
#

Are you using Checkout and if so which version? The hosted one where you redirect the customer to us or something else?

civic socket
#

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?

inland sinew
#

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

civic socket
#

Thanks,

#

I I suspected it worked that way but I wanted to be sure

inland sinew
#

you can do what you're after but you do need to build a lot more of this yourself on your own page

civic socket
#

I know , for some reason I wanted do it later

#

Thanks a lot you save more of my time !!!

zealous yarrowBOT
inland sinew
#

๐Ÿ™‚

#

AI is nice but they do make up a lot of stuff ๐Ÿ˜“

civic socket
#

first idea was cancel paymen ๐Ÿ™‚

#

after second I decide get help in another place ๐Ÿ™‚