#curtis_58573

1 messages ยท Page 1 of 1 (latest)

ornate quailBOT
brittle hawk
#

Hi ๐Ÿ‘‹

What Stripe product are you integrating with?

shy gate
#

I am new to Stripe, so I may bumble around a bit. What do you mean by product? I am accepting online payments via Stripe. Using the expressCheckout elements

#

... and thank you for such a quick reply!

#

I think the product is Payments

brittle hawk
#

Okay what tech tool are you using to display Apple/Google pay?

shy gate
#

stripe.elements

#

then elements.create('expressCheckout')

#

I have been successfull in getting a partial address via the shippingaddresschange event, but it only returns postal code, state, country. I need the street address too

brittle hawk
shy gate
#

yes!

brittle hawk
#

Okay got it. This helsp me get oriented to your use case

shy gate
#

You are doing a great job at diagnosing!

brittle hawk
#

There is an option in Stripe.js for requesting the Shipping address and this will get saved to the Payment Intent

#

I'm looking for that doc

shy gate
#

๐Ÿ‘

brittle hawk
#

Wait I'm sorry the feature I was thinking of is related to the Payment Request API, which the Express Checkout Element does not use

shy gate
#

ah, ok. I can see the selected shipping in the transaction details dashboard on stripe.com, so I know stripe is keeping track of it somewhere. Any other ideas where I might go to find out how to get this data?

brittle hawk
#

When you say the "transaction details" do you have an object ID I can look at?

#

Like pi_ something?

shy gate
#

hold on, looking

#

I have one, but the stripe website isn't letting me copy it

#

got it

#

pi_3Ndg3sBAL5KhytBW1NFAzsCv

#

There is a shipping address in the details there that matches what was selected in the express checkout UI. recipient Test Address

brittle hawk
#

Right, that is where this information gets saved.

shy gate
#

How can I retrieve it in my code? When the customer places an order, I need to fire off the shipping address to my fulfilment server, so I need it accessable programatically

brittle hawk
#

So what you would do to get that information is to set up a webhook endpoint that listens to the payment_intent.succeeded event and retrieves the shipping address info from the Payment Intent object that gets sent

shy gate
#

... reading

#

ok, cool. Do you also have a link to any docs on the best practices for setting up webhooks with stripe?

brittle hawk
#

We've got a whole section on them. Let me find it

shy gate
#

perfect. Thanks a ton!