#John_Doe_LearningStripeCheckout-Checkout

1 messages · Page 1 of 1 (latest)

shrewd rain
#

by rejecting in the wehook, what webhook event you are referring to?

somber jackal
#

Cancel the authorized payment intent instead of capturing it, the event is checkout session complete with payment intent status as unpaid / requires_capture

#

checkout.session.completed

#

session.payment_status == "unpaid"

shrewd rain
#

I see. Yes it's up to you to not capture the fund, since that's the purpose of separate authorization and capture. But please make sure to proper communicate with your customer or they will mis-understand it

#

But what kind of shipping address validation you want to perform, other than what Stripe offers in Checkout?

somber jackal
#

Yes, I was thinking what to do in this situation for a marketplace. I saw some ebay guidelines about canceling the purchase and asking the customer to try again, so I just thought to automate this process. I'm using USPS shipping address validation, also I'm not saving customer address on my database and so didn't want to manually liaise with them to collect the correct details so I'm not saving them

#

Because the stripe checkout doesn't validate the address it just suggests the address. I wanted to avoid having to deal with anonymous user purchases and trying to get their address. I will confirm to the user clearly in the redirect page but just checking in case there is already some stripe guidelines around this. I've read the terms of stripe but I know there are many documents and not sure if this is a common scenario with a standard process like what I'm doing.

shrewd rain
#

I think Stripe Checkout does perform some kind of validation. But I understand that you may want to do additional validation layer from our own and that's actually a common scenario. In that case I believe implement Subscription by your self (not using Checkout) could let you have way more flexibility. You could stop the Payment to be confirmed if your customer's address doesn't pass through your own validation

#

For Checkout, yes you can do that, but I think it's not a great UX experience

somber jackal
#

Yes good point, I started with checkout but I see what you're saying, thanks for your help

shrewd rain
#

good luck!