#alan-checkout-prefill

1 messages · Page 1 of 1 (latest)

jade dockBOT
delicate hornet
#

Hello! Unfortunately Brazil is not in the list of countries that we collect tax IDs for right now

#

If you want to collect that you'd have to do it outside of Checkout

bright sandal
#

Ok, thank you. May I collect it by custom fields?

delicate hornet
#

Yup you could do that - but we wouldn't do any kind of validation on it or anything to confirm it's correct/in the right format

bright sandal
#

Fine. Can I pass billing address data to checkout session? So it wont need to ask customer again?

#

Also there is a method here in Brazil called BOLETO, for this method, it gets the tax_id, so its like stripe already works with brazilian tax_id, but only for BOLETO, not for cards...

#

Anyway, I may collect it before then, but can I pass billing address info to checkout session:

#

Checkout is showing 9 days, but Im sending 10 days of trial

delicate hornet
#

Let me back up and answer your earlier question - there isn't a way to set billing address data directly to a checkout session, but you can create a Stripe Customer and update the billing address on the Customer, and then pass in that Customer to the checkout session

#

For the screenshot you sent, do you have a checkout session ID I can take a look at?

bright sandal
#

So if I pass the customer with billing address filled it wont ask him again?

delicate hornet
#

I don't think it should

jade dockBOT
bright sandal
stoic panther
#

Taking over, @bright sandal what's your question? You gave an id but not much context. Like did you pre-fill the address on the Customer? what's the problem?

#

alan-checkout-prefill

bright sandal
bright sandal
stoic panther
#

Your code is explicitly passing trial_end here as a timestamp in the future. You passed 1693156155 and the Session was created on 1692292176 wich is 9.99 days

#

so we show 9 days not 10

bright sandal
#

fine, thank you, this is my laravel cashier. I will handle that.