#talker1284
1 messages ยท Page 1 of 1 (latest)
Yes, that will be calculated and made available after payment in the total_details hash
https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-total_details-amount_tax
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
can i see that in the stripe UI?
I found it, i have another question. I am creaeting a checkout session and set the customer Id. This will fill in the billing address info for me in hosted checkout as expected. I am wondering if there is a way to lock this so that they can't change it here?
options.Customer = customerId;
options.BillingAddressCollection = "auto";
options.CustomerUpdate = new SessionCustomerUpdateOptions
{
Shipping = "auto",
};
๐ hopping in here since synthrider had to head out
I believe by default they wouldn't be allowed to update it - are you seeing somethign different?
yes, it fills in the shipping addresss info for me but it's unlocked and allows the user to edit.
Ah, so that's different than the billing address - you need to set Shipping = "never" if you want it to not be edited