#.rjcustodio
1 messages ยท Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- .rjcustodio, 1 day ago, 4 messages
- .rjcustodio, 3 days ago, 16 messages
- .rjcustodio, 4 days ago, 8 messages
- .rjcustodio, 5 days ago, 19 messages
If you want the Checkout Session to save/update the shipping information on the Customer, you need to use this parameter : https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer_update-shipping
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
yep i already used that when creating check out session..
this is our scenario now..
we are updating the billing and shipping using update customer api..
concern is why it is not reflecting in checkout session?
can you provide the corresponding Checkout Session id?
cs_test_a1jxgdshKbfcg0UN2xsgkEeP713O3gj0v9k8JIKyUzU8UKv6E41fl4WROx
cs_test_a1U476wSerc7SfmofxYmwXaMKhF6RHmTUIgCmtDfAuLxRJSYTJYDNf5uCm
this is new
so from what I understand, you expect Checkout to display the shipping address that is already saved on the Customer object (assuming it exists)?
yes that is correct
hmmm, give me a while to look into this
sure thank you
try using "US" instead of "United States" for the customer's shipping address
one of the conditions that we use to decide if we display the Customer's existing shipping address is whether the Customer's existing shipping address matches that of the shipping allowed_countries. I see that the address for your Customer is listed as "United States", but Stripe is filtering for two letter ISO country codes
alright will try
it worked for shipping...
but for billing details it is getting the old values
this values should be in the billing in checkout session
cs_test_a1g1mrIBMZ8r9p0Th80fu2aHxgDjprScmVVJnwU4I5JNamzxyQVrfhL4S5
It's likely using the Billing details saved on the PaymentMethod itself, you can verify if that's the case
we are updating billing address with the same address of shipping address using customer update API.
it was successfully updated and it is reflecting in customer record.
but why the updated billing address is not reflecting in check out session?
That Checkout Session is displaying the billing address on the **Payment Method ** that is currently being used/displayed for payment.
that billing address that you've indicated in the red box in your screenshot is on the Customer
is there a way to show the billing address from customer record to stripe checkout session?
not that I'm aware of right now. For context, we don't necessarily always collect the full Billing Address since it's not needed. Only the Zip code of certain countries are necessary for AVS.
just to be clear
The Checkout Session billing address displays the recent address that you used in the last payment.
while the shipping address in checkout session is from customer record right?
๐ Taking over this thread, catching up now
Yes, you're right! Shipping address will be taken from the Customer object whereas billing address will be taken from the last payment method (not Customer object)
thank you