| Q | A
| ---------------- | -----
| Bug report? | yes
| Feature request? | no
| BC Break report? | no
| RFC? | yes
| Sylius version | master
Issue is that CaptureAction assumes, that payment covers order fully, which isn't the case by design as partial payments are supported.
Consequently I've encountered this issue on custom partial payment flow, so I would think it's not reproducible with vanilla Sylius.
--- $totalAmount = $order->getTotal();
+++ $totalAmount = $payment->getAmount();
$payumPayment = new PayumPayment();
$payumPayment->setNumber($order->getNumber());
Same for description provider.
https://github.com/Sylius/Sylius/blob/master/src/Sylius/Bundle/PayumBundle/Provider/PaymentDescriptionProvider.php
Should I do PR?
Regards.
@diimpp Thanks for reporting, I think you are correct. PR would be more than welcome! :)
Hey! This is still an issue. Would a PR still be applicable? If so, I could handle it.
Hey Leopold, PR should be still applicable and welcomed :) Feel free to open it.
Fixed by #10613.
Wrong payment amount when paying the remaining payment and cancel it.
The new payment record generated with order total as the amount.
Also, when using the refund plugin, the remaining payment amount should be:
order total - paid total + refunded total
Most helpful comment
Hey! This is still an issue. Would a PR still be applicable? If so, I could handle it.