#matrix-block-postcode
1 messages · Page 1 of 1 (latest)
yes
Got it. Yeah, as that's a hosted solution you can't really implement any additional controls like that. Instead you'd rely on a Radar rule to block those payments: https://stripe.com/docs/radar/rules
ok, is there a way to ask the customer to add a postcode before checkout AND pass that info to checkout prepopulating the checkout session?
I would like to avoid asking the same info 2 times
the radar rules seems more focused at security. in my case it is an opertional matter - i have a takeaway business and they can deliver only to certain post codes
Not with Checkout, no
I guess in this case you'd instead implement an auth and capture flow for the payment with Checkout. Then when the Checkout Session is completed, listen for the checkout.session.completed event and either cancel the associated Payment Intent, or capture it depending on if the postcode is within your delivery range
ok thanks