#Jahanvi

1 messages · Page 1 of 1 (latest)

devout baneBOT
sage hollow
#

hello! can you elaborate more on the issue you're facing?

pine needle
#

when I am creating customer in stripe, even if I add random postal code its accepting

#

But fails when I generate invoice for same customer

heady sky
#

yes, you can add any address, but if you're later doing something that requires an accurate address(presumably like creating an Invoice needing Tax ?) you'd get an error.

pine needle
#

is there a way to avoid this?

#

yes we need automatic tax on invoice

#

We need to restrict customer creation if postal code is invalid

heady sky
#

if you use our products like Checkout or the AddressElement to collect the customer details then I imagine we validate this kind of thing to prevent it

pine needle
#

let me check

#

when to call this checkout session?

heady sky
#

when you're trying to accept a payment from the customer

pine needle
#

We are accepting payment offline, is there a way to validate on customer creation?

#

Because if we get error on checkout session there is no way to collect payment for us

#

this is a blocker

heady sky
pine needle
#

we have this process

#

we collect card

#

then we charger bill after customer's consumption

#

async

#

so we generate bill after customer use resources.

heady sky
#

you can use Checkout in set up mode to just collect cards without charging them