ethercreative / web-payments

Web Payments for Craft Commerce
Other
5 stars 7 forks source link

If an adjustment updated an item sale price, the updated sale price is not used when creating the request #27

Closed ghost closed 2 years ago

ghost commented 2 years ago

We have an adjustment that changes the sale price of the purchasable based on some conditions. The price we see in google play or apple pay shows as the original price. For example: We have a product that we charge 10.50$ for it, and it gets changed to 6.50$ for regular customers. We change the price so discounts, shipping rate apply to the 6.50$. This all happens in its adjustment.

In this file: ..\vendor\ether\web-payments\src\services in line 157 Shouldn't the amount be assigned to the line item sale price not the purchasable sale price ?

image