#jakub-ece-shipping

1 messages ยท Page 1 of 1 (latest)

scenic onyxBOT
#

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.

cedar bloom
#

Hello! Do you have an example I can take a look at as well as the code for your express checkout element?

hallow pagoda
#

Hello, may I send you PaymentIntent id you can take a look?

cedar bloom
#

Yup!

hallow pagoda
#

ok, for instance this PI please

#

pi_3OKyq6JFrL6Qq8J10JXJ7862

#

it seems, customer hasn't got address set in ApplePay

cedar bloom
hallow pagoda
#

ok makes sense but why I can't see customer address even in Stripe Dashboard?

cedar bloom
#

We get the full billing address, but no the full shipping address (Apple completely hides it from us so you would only get a stripped version of it)

hallow pagoda
#

ah yeh, you are right, I can see it

#

but how can I get PaymentResponse object you mentioned above?

hallow pagoda
#

yep

#

in confirm event of Express Checkout element I can confirmPayment method so payment is placed and then it redirects to returl_url

#

I call

cedar bloom
#

After being redrected to the return_url I believe you should get query params in the URL that include the Intent ID and client-secret, which would allow you to retrieve them and get the full payment

scenic onyxBOT
#

jakub-ece-shipping

hallow pagoda
#

yeh, I've got these values - so I should call some API method? currently I call API to get paymentIntent and store address from response

cedar bloom
hallow pagoda
#

yeh, I do that but apparently I get stripped out shipping address

#

so is there any other way how to get full adress?

cedar bloom
#

No, there's really no way for you to get this full address from Apple Pay (they're the ones that strip it out, Stripe gets the stripped out version as well).

#

You'd have to separately collect a full shipping address yourself if you need it

hallow pagoda
#

but you mentioned that PaymentResponse object contains full address, how can I get this response type?

#

because it is essential to have shipping address as we need to deliver products customer has paid for ๐Ÿ˜‰

#

for instance this PI has got shipping address shown even though it is ApplePay as well

#

pi_3ONBaaJFrL6Qq8J11L2czngE

cedar bloom
#

Ah! Sorry about that I missed that part about the PaymentResponse - in your code you're currently listening for a confirm event right?

hallow pagoda
#

yeh, and inside this event I call confirmPayment method ๐Ÿ˜‰

cedar bloom
#

When you log the event do you get the full shipping Address there?

hallow pagoda
#

hmm not sure though, do you think this could be a way how to get it?

cedar bloom
#

Yeah, I'm thinking that's where you'd be able to get the full address

hallow pagoda
#

ok cool, I'll test this approach, thanks for your help ๐Ÿ˜‰