#Martin Gaibisso - postal codes

1 messages · Page 1 of 1 (latest)

cursive steeple
#

so if someone uses a US card but inputs UK address like the example I'll get invalid postal code?

#

Thanks for your response btw!

#

I'm asking since we are getting live customer experience this issue so it doesn't seem like a test-only issue

stuck stirrup
#

What issue are you seeing specifically?

cursive steeple
#

we only get the first part of the postal code

#

so we can not ship

stuck stirrup
#

How do you collect shipping address? That should be separate from billing address

cursive steeple
#

the image I sent describes the problem

#

when we do a payment request for googlePay. the postal code in GP is a two-part code.

#

yet on the payment request onShippingAddressChange we only get the first part of the postal code from your API

stuck stirrup
#

That's a canadian address though

cursive steeple
#

yeah, happening on UK addresses aswell

#

all two-part postalcodes

stuck stirrup
#

Gotcha. I know for billing in the US it's only a 5 digit postal code that's accepted. I'm not sure about shipping. Let me ask a colleague about this

cursive steeple
#

seems odd you'd trim the postalcode and send an invalid one

#

yet on stripe dashboard, the postalcode is complete

stuck stirrup
#

I'm not familiar with UK postal codes. Is the second part required?

#

In the US it's optional and you can still ship without it

#

Will check this with a colleague though

cursive steeple
#

I presume it is. I have merchants complaining so I guess it's a problem for them

#

thanks for checking

stuck stirrup
#

this means you can’t get the full address until after the customer authorises the payment and you’re handling that in the on('paymentmethod', function(ev){..}) stage( at which point ev.shippingAddress should exist and be complete)

cursive steeple
#

gotcha. thanks for your help!