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

Adyen refuses Apple Pay transactions in ISK #2928

Closed
dimitri-dev opened this issue Oct 29, 2024 · 1 comment
Closed

Adyen refuses Apple Pay transactions in ISK #2928

dimitri-dev opened this issue Oct 29, 2024 · 1 comment

Comments

@dimitri-dev
Copy link

dimitri-dev commented Oct 29, 2024

Describe the bug
We rollbacked to Adyen Web v6.0.3 (release before PR #2811 was merged). ApplePay modal on that version shows the amount properly when trying to purchase something. However, upon sending a /payment request to Adyen, we get a response:

status: 422
errorCode: 5_001
message: ApplePay token amount-mismatch.

Since ApplePay component deals with decimal amount, and we send in minor unit requests to Adyen backend, our current assumption is that the backend isn't checking the amounts properly (comparing Apple token's decimal amount to our minor units amount). I'm not sure where the issue lies.

If we trick the modal into showing the amount in minor units (say 10,000 for a 100 ISK transaction), then 100 ISK is charged.
However, from a customer standpoint, confirm to pay an amount 100x than what it is, not really happening :)

To Reproduce
Steps to reproduce the behavior:

  • Implement a website with the Adyen Drop-In component.
  • Initiate a transaction using ISK as the currency.
  • Set the amount.value as the payment value in minor units (e.g., 10,000 for a 100 ISK transaction).
  • Go through with the payment.
  • Payment will be denied.

Expected behavior
Payment processed normally.

Desktop (please complete the following information):

  • Tested on MacOS (Macbook Pro M1) in Safari browser.

Additional context
This issue should be very easy to reproduce by configuring a payment in ISK and going through with it.

Originally posted by @dimitri-dev in #2922 (comment)

@camil-adyen
Copy link
Contributor

Hi @dimitri-dev, please contact support@adyen.com. They will be able to configure your account in such a way that this error is ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants