You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changing prices via: Event::on(LineItems::class, LineItems::EVENT_POPULATE_LINE_ITEM, function(LineItemEvent $e)
show up correctly in the Commerce checkout, but in Apple/Google Pay, the changes are not reflected, and it tries to charge the amount before those changes.
The text was updated successfully, but these errors were encountered:
I've also just encountered this issue. Opened up src/services/StripeService.php on line 157 and changed $item->purchasable->salePrice * $item->qty within the brackets to be $item->subtotal for a quick test and this has fixed the issue.
In my local copy with this edit, the complete version of line 157 now reads as: $amount = round($item->subtotal * 100);
This has preserved the custom # logic I've used elsewhere. Can this please be implemented in the next release @Tam? Thanks.
Changing prices via:
Event::on(LineItems::class, LineItems::EVENT_POPULATE_LINE_ITEM, function(LineItemEvent $e)
show up correctly in the Commerce checkout, but in Apple/Google Pay, the changes are not reflected, and it tries to charge the amount before those changes.
The text was updated successfully, but these errors were encountered: