Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apple Pay billingAddress missing some fields that exist in authorizedEvent.payment.billingContact #2863

Open
joaopedrodcf opened this issue Sep 22, 2024 · 2 comments
Labels
Needs more info Further information is requested

Comments

@joaopedrodcf
Copy link

Describe the bug
Using apple pay express onAuthorized and getting the fields from the params

onAuthorized: async (
                    {
                        authorizedEvent,
                        billingAddress,
                        deliveryAddress,
                    },
                    actions,
                )

The billingAdress will contain only some of the fields that we except and others will be in authorizedEvent.

Example of fields that we expect to exist but are not on billingAdress: firstName, lastName, stateOrProvince

To Reproduce
Steps to reproduce the behavior:

  1. Use adyen web 2.0
  2. Create a apple express payment
  3. Use the onAuthorized method and log the values that were input by the customer on the express checkout.

Expected behavior
The fields that are available in authorizedEvent.payment.billingContact should also be available in the billingAddress

Screenshots

Desktop (please complete the following information):

  • OS: MacOS 15
  • Browser Safari
  • Version 6.2.0
@joaopedrodcf
Copy link
Author

This also happens in google pay

@ribeiroguilherme
Copy link
Contributor

Hi @joaopedrodcf

The billingAddress and deliveryAddress follows the Adyen API format . billingAddress does not expect the fields firstName nor lastName as described here.

The stateOrProvince field is optional, and it might be returned depending if the data is available or not.

  • For GooglePay, we expect this value to come from authorizedEvent.paymentData.info.billingAddress.administrativeArea (here)
  • For ApplePay, we expect this value to come from authorizedEvent.payment.billingContact.administrativeArea (here)

It might be that this field is not available for you in the authorized event. Can you confirm that?

@ribeiroguilherme ribeiroguilherme added the Needs more info Further information is requested label Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs more info Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants