- Issue created by @bpstr
Adjustments and total prices are calculated incorrectly which results in different prices between Simplepay and Drupal.
note: When sending "items", "total" key will be ignored.
1. Create products where the unit price is not a whole number
2. Add adjustments to the order item (for example promotions, possibly percentage)
3. Add adjustments to the order itself
4. Check out and choose Simplepay payment
5. The order total price is not equal to which displayed on Simplepay UI.
Apply this patch for commerce products: https://www.drupal.org/project/commerce/issues/3370432 🐛 OrderItem total price rounding issue Closed: won't fix
Modify the calculation and rounding mechanism during constructing the payment request object.
Review the changes.
none.
none.
none.
Needs review
2.0
Code