#Martin Gaibisso
1 messages · Page 1 of 1 (latest)
Can you share a payment id or request id where this is happening?
is from connected account acct_1MqHqbR722OPVbLh
can you check with that? I don't see any logs
I'll need something more specific
The payment intent id where this is happening
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
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
So the postalcode is cut off in the apple pay modal?
Also if you're using this flow, shouldn't payment intent already be created? https://stripe.com/docs/stripe-js/elements/payment-request-button?client=html#html-js-mount-element
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
Can you provide screenshots of the flow to show what's happening exactly?
maybe that helps
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
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
with half postal code? that must be a bug mate
Can you complete the test payment and confirm you get the full post code in the payment method?
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
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?
let me check
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