If the user change the payment method after the order was placed, the order total price does not change, just the payment fee.
The $orderProcessor->process($order); should be called.
Step to reproduce
- Place order as usual
- After checkout change payment method with different fee
- Check the order total price in admin
💡 Another hint: When you call the process method above, it will mess the order details (add extra payment fee, taxes, etc.).
Update
It's related to Sylius/Sylius#12437 - Sylius's core team should decide, who is responsible for order recalculation after the change of the payment method.
If the user change the payment method after the order was placed, the order total price does not change, just the payment fee.
The
$orderProcessor->process($order);should be called.Step to reproduce
💡 Another hint: When you call the process method above, it will mess the order details (add extra payment fee, taxes, etc.).
Update
It's related to Sylius/Sylius#12437 - Sylius's core team should decide, who is responsible for order recalculation after the change of the payment method.