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 Express Issues #1062
Comments
Hello @IaroslavVerstiukOSF Thanks for reporting this and explaining the issue to this extent! We tested this and can see that the taxes are correctly applied for the US locale (for other locales like french for example the taxes doesn't apply because those are part of the amount). We are already aware that the tax line item is not part of the summary and we will look into providing that as part of the Apple Pay dialog. Although the taxes are visible on the confirmation page. Kind Regards |
For US locale taxes needs to be calculated not only based on country code but also considering state and postal code. In your code base for Apple Pay express flow, you are not setting address until you are calling You are calculating basket only in Adyen-SelectShippingMethod endpoint , but at that time address is not set in the basket, so you can't get accurate tax. What I did is modify callGetShippingMethods function that is called when we are getting available shipping methods and set address info there. But the problem we are still facing is that is you use 3rd party tax service that do granular tax calculation , at that step we can't see full postal code due to security reasons, and you can only see once customer confirms and proceed with Authorization , which is in Adyen-PaymentFromComponent, if I try to recalculate taxes there having a full address , I might end up with different total that what was presented to the customer and when we try to authorize in this case we are getting error: 5_001 - Apple Pay token amount-mismatch |
Thanks for your reply. We are already looking into this and will provide you an update! Kind Regards, |
Describe the bug
In one of our Salesforce commerce cloud project we were working on adding Adyen Appel Pay express payment options, our implementation was done using Adyen Apple Pay certificate.
During testing we saw that there are issues with what data is displayed in Apple Pay window, for example there are no information about taxation , no shipping discounts or order discounts are shown.
Taxation was not calculated at all, even checking your SFCC demo sandbox where ApplePay express was enabled taxes were not set and order was placed without taxation.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Customer should be able to see full info on summary page same as on cart, taxes should be calculated.
Workaround done
We've extended applePayExpress.js file to add missing fields to order summary following SDK documentation https://docs.adyen.com/payment-methods/apple-pay/web-component/express-checkout/
Specifically newLineItems were added to reflect correct summary information.
Regarding taxation, it was not calculated as address is not set on the basket level, to handle this in shippingMethods.js file in function callGetShippingMethods we've added functionality to set basic address in cart that is available from apple pay
Please fix Apple Pay express in your SFCC cartridge
The text was updated successfully, but these errors were encountered: