#Martin Gaibisso

1 messages · Page 1 of 1 (latest)

shadow juncoBOT
drowsy sedge
#

Can you share a payment id or request id where this is happening?

sage moon
#

is from connected account acct_1MqHqbR722OPVbLh

#

can you check with that? I don't see any logs

drowsy sedge
#

I'll need something more specific

#

The payment intent id where this is happening

sage moon
#

payment request is created for payment button (apple pay). then apple pay modal displays and after onShippingAddressChanged event we get the postalcode cut off

#

this via js api

#

you need that payment request id?

#

payment intent is still not created

drowsy sedge
#

So the postalcode is cut off in the apple pay modal?

sage moon
#

no, apple pay displays everything fine. full UK address. but the onShippingAddressChanged data provides the postal code cut off

#

no, payment intent is created after paymentRequest.confirmPayment

#

it's working already but for some accounts we are getting this problem. maybe something related to connected account?

#

that CA is UK based so I don't know why the UK postal code is being cut off

drowsy sedge
#

Can you provide screenshots of the flow to show what's happening exactly?

sage moon
#

for that video, this is the shippingAddress data provided by stripe

#

[23-04-13 02:48:01] Array
(
[country] => GB
[postalCode] => TW20
[recipient] =>
[region] => Surrey
[city] => Egham
[phone] =>
[sortingCode] =>
[dependentLocality] =>
[organization] =>
)

#

you can see the postalcode in the video is TW20 OAR

#

yet stripe is trimming that

sonic shale
#

Ah, this

#

I think you should find that the full post code is present on the payment method billing details after the customer completes the flow and that gets generated

#

The data in the shipping address change event is truncated for privacy reasons, but is intended to be sufficient for calculating shipping rates

sage moon
#

with half postal code? that must be a bug mate

sonic shale
#

Can you complete the test payment and confirm you get the full post code in the payment method?

sage moon
#

I need to offer shipping options for the customer

#

I can not do that with half postal code

#

that affects the transaction amount

#

should I submit a bug ticket?

#

this must be a bug of some sort

sonic shale
#

I'm going to try to reproduce and confirm this, it might be a bug! But that's what I'm trying to assess

#

What do you get after you complete the payment?

sage moon
#

let me check

shadow juncoBOT
sonic shale
#

I confirmed I see the same, the UK post code is partially redacted for privacy reasons in the shipping address change event as noted in the docs:
https://stripe.com/docs/js/payment_request/events/on_shipping_address_change#payment_request_on_shipping_address_change-handler-shippingAddress

To maintain privacy, browsers may anonymize the shipping address by removing sensitive information that is not necessary to calculate shipping costs. **Depending on the country, some fields can be missing or partially redacted. **For example, the shipping address in the U.S. may only contain a city, state, and ZIP code. The full shipping address appears in the PaymentResponse object after the purchase is confirmed in the browser’s payment interface

#

When I complete the payment the payment method has the full post code from my address settings