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
This should be handled by Sylius however. Sylius should create a payment with the correct amount. It would be possible that it doesn't display the individual additions in Paypal but the total should be correct.
It would be nice though if you could explain the issue further (as we only use this plugin with offline payments this might really be an undiscovered bug.)
Nope but there is an easy fix for it. Just add this to your OrderItem class:
/** * Overriding sylius' total calculation to also take customer options into account. */publicfunctiongetSubtotal(): int
{
returnparent::getSubtotal() + $this->getAdjustmentsTotalRecursively(CustomerOptionRecalculator::CUSTOMER_OPTION_ADJUSTMENT);
}
Hi there,
When u try to pay with Paypal using this plugin. The price amout sent is not the right one.
It miss the CUSTOMER_OPTION_ADJUSTMENT.
We need to override it by ourself the ConvertPaymentAction from the Sylius framework.
Need more details?
The text was updated successfully, but these errors were encountered: