#curtis_58573
1 messages ยท Page 1 of 1 (latest)
Hi ๐
What Stripe product are you integrating with?
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
Okay what tech tool are you using to display Apple/Google pay?
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
Okay so you are talking about this: https://stripe.com/docs/elements/express-checkout-element
yes!
Okay got it. This helsp me get oriented to your use case
You are doing a great job at diagnosing!
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
๐
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
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?
When you say the "transaction details" do you have an object ID I can look at?
Like pi_ something?
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
Right, that is where this information gets saved.
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
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
Here is the event for that Payment Intent: https://dashboard.stripe.com/test/events/evt_3Ndg3sBAL5KhytBW183ttiiC
... reading
ok, cool. Do you also have a link to any docs on the best practices for setting up webhooks with stripe?
perfect. Thanks a ton!