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

Shipping cost calculation for Paypal Express #1196

Open
kubilaykiran opened this issue Oct 24, 2024 · 1 comment
Open

Shipping cost calculation for Paypal Express #1196

kubilaykiran opened this issue Oct 24, 2024 · 1 comment

Comments

@kubilaykiran
Copy link

kubilaykiran commented Oct 24, 2024

Describe the bug
Shipping cost is sent as net even if the site has gross taxation.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the cart page on the site with gross taxation.
  2. Click on the Paypal Express button.
  3. Compare the shipping method prices on the Paypal popup with the storefront.
  4. See the difference

Expected behavior
Shipping price should be sent as gross if the site has gross taxation.

Screenshots
image

Additional context
The possible root cause:
https://github.com/Adyen/adyen-salesforce-commerce-cloud/pull/1134/files
https://github.com/Adyen/adyen-salesforce-commerce-cloud/pull/1172/files

@shanikantsingh
Copy link
Member

Hello @kubilaykiran,

For PayPal update order call we need to pass the total taxes separately. There is a validation that checks if the new amount is sum of total taxes plus delivery cost plus initial amount. So, since we have to pass the taxes separately we cannot include the shipping tax as part of the delivery cost as it will cause validation error. This also takes into account for the situation where tax rate could change based on the tax jurisdiction.

Regards,
Shani
Adyen

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

No branches or pull requests

2 participants