#Martin Gaibisso - postal codes
1 messages · Page 1 of 1 (latest)
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
No problem! That would depend on your radar settings. If you are blocking incorrect postal code. We have some test cards to test that scenario: https://stripe.com/docs/testing#fraud-prevention
What issue are you seeing specifically?
How do you collect shipping address? That should be separate from billing address
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
That's a canadian address though
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
seems odd you'd trim the postalcode and send an invalid one
yet on stripe dashboard, the postalcode is complete
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
I presume it is. I have merchants complaining so I guess it's a problem for them
thanks for checking
Ah my colleague got back. So the shipping address being trimmed is expected in the events before the payment is complete. See this section: https://stripe.com/docs/js/payment_request/events/on_shipping_address_change#payment_request_on_shipping_address_change-handler-shippingAddress
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)
gotcha. thanks for your help!