#alexmorse42 - shipping address

1 messages · Page 1 of 1 (latest)

rare cape
#

Hello! Payment methods themselves do not have shipping addresses. Can you provide a bit more detail for what you are trying to achieve?

tidal axle
#

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

rare cape
#

Okay so you're using paymentRequest. Would I correct in assuming you have an event handler for the .on('paymentmethod', (event)=>

#

?

tidal axle
#

yes

rare cape
#

Okay, good news! You've getting the PaymentResponse object returned to your client.

tidal axle
#

Ok, what's returning that one

rare cape
#

This is the object returned in the on('paymentmethod' event linked above

tidal axle
#

Ahhhh I was inspecting event.paymentMethod

#

yes this is perfect

#

thank you for helping me find my debugging problem 🙂