#.rjcustodio

1 messages ยท Page 1 of 1 (latest)

finite oxideBOT
#

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.

edgy rain
severe spire
#

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?

edgy rain
#

can you provide the corresponding Checkout Session id?

severe spire
#

cs_test_a1jxgdshKbfcg0UN2xsgkEeP713O3gj0v9k8JIKyUzU8UKv6E41fl4WROx

#

cs_test_a1U476wSerc7SfmofxYmwXaMKhF6RHmTUIgCmtDfAuLxRJSYTJYDNf5uCm

#

this is new

edgy rain
#

so from what I understand, you expect Checkout to display the shipping address that is already saved on the Customer object (assuming it exists)?

severe spire
#

yes that is correct

edgy rain
#

hmmm, give me a while to look into this

severe spire
#

sure thank you

edgy rain
#

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

severe spire
#

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

edgy rain
#

It's likely using the Billing details saved on the PaymentMethod itself, you can verify if that's the case

severe spire
#

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?

edgy rain
#

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

severe spire
#

is there a way to show the billing address from customer record to stripe checkout session?

finite oxideBOT
edgy rain
#

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.

severe spire
#

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?

vale widget
#

๐Ÿ‘‹ 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)

severe spire
#

thank you