Page MenuHomePhabricator

ApplePay token amount-mismatch
Open, LowPublic

Description

"Dec 3 17:27:40 payments1006 mediawiki[1518]: mediawiki[1518]: [Y4uHC-klGRxPuwSh-@1eaQAAAAY] /api.php SmashPig\Core\ApiException from line 321 of /srv/www/org/wikimedia/payments/vendor/wikimedia/smash-pig/PaymentProviders/Adyen/ExceptionMapper.php: ApplePay token amount-mismatch"

https://docs.adyen.com/payment-methods/apple-pay/handle-apple-pay-errors#5_001-apple-pay-token-amount-mismatch
5_001 Apple Pay token amount-mismatch
What it means
The amount that was authorised in Apple Pay is not the same as the amount that was authorised by the Adyen payments platform.

How to troubleshoot
Verify the amounts in the transaction. Note that transactions made with Discover cards (test and live) and American Express cards (test) support only USD as currency.

ref: https://github.com/Adyen/adyen-ios/issues/91

still happen now at jan, 2023

Event Timeline

greg triaged this task as Low priority.Dec 6 2022, 12:06 AM
greg subscribed.

Assuming one occurrence.

I thought we fixed this with the float->int rounding fix, but I see it again in yesterday's logs for 200719959.1 (app donation of $3.35). The amount looks correct in the curl logs:

Outbound data: '{"amount":{"currency":"USD","value":335} ...