#fdc8cd4cff2c19e0d1022e78481ddf36
1 messages ยท Page 1 of 1 (latest)
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer Checkout page will pre-fill with customer's billing address
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
The customer already has its created ID tho
So I am just reusing that in the checkout
session = stripe.checkout.Session.create(
success_url="https://website.com/success",
customer="customer_id_saved_in_database",
....
)
Yes you are right
Seems like I can only pre-fill shipping address (with payment_intent_data.shipping), but I need to prefill his billing country ๐
Does this customer has a billing address?
Not yet, maybe I will have to update his customer after he changes his billing country in our platform?
I assume its alright if he pays for 1 thing lets say with billing_country in one country, changes the billing country and pays for another thing with the new billing_country?
That's entirely up to you
Yeah but the point is thats the only way to force the billing country on checkout?