#alexmorse42 - shipping address
1 messages · Page 1 of 1 (latest)
Hello! Payment methods themselves do not have shipping addresses. Can you provide a bit more detail for what you are trying to achieve?
Click apple pay (the shipaddress updated event works fine) -> complete the order and know where to ship without the user having to do further input.
also, taxes
Currently I'm taking the pm_id and using it to create a customer record for future use. I can have them fill out shipping address on site separately it just seems against the intent of paymentRequest
Okay so you're using paymentRequest. Would I correct in assuming you have an event handler for the .on('paymentmethod', (event)=>
?
yes
Okay, good news! You've getting the PaymentResponse object returned to your client.
This object contains the shipping information you are looking for.
https://stripe.com/docs/js/appendix/payment_response#payment_response_object-shippingAddress
Ok, what's returning that one
This is the object returned in the on('paymentmethod' event linked above