Post

Replies

Boosts

Views

Activity

Reply to Apple Pay JS token amount mismatch (missing Address Line 1)
Hi All, found a solution to this. Noticed that SFCC is calling calculate hook before and after some of the ApplePayHooks, and Implementation of Avalara Tax system requires condition in this hook as follows: if (calculateAvalaraTax) { // Tax Calcuation Logic } If Avalara Tax is enabled, the same tax calculation logic should be executed on calculate hook that is being called from SFCC ApplePayHooks. To achieve this, updated the condition as follows: if (calculateAvalaraTax || (request.httpPath && request.httpPath.indexOf('__SYSTEM__ApplePay') > -1)) { // Tax Calcuation Logic } This solved the issue, hope this helps, thanks!
May ’22