#alan-checkout-prefill
1 messages · Page 1 of 1 (latest)
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
Ok, thank you. May I collect it by custom fields?
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
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
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?
So if I pass the customer with billing address filled it wont ask him again?
I don't think it should
cs_test_b1Pg6gsIbInnACGrvAJAXRluJGbHybMyzx7Rb8zMfdebhjK3ZomOh1ke9b
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
I'm running some tests now, I will pre-fill address of customer to check
About checkout session id, I'm sending tryal days of 10 days, and checkout session is showing 9 days
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
Use trial_period_days instead if you want 10: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-subscription_data-trial_period_days
fine, thank you, this is my laravel cashier. I will handle that.