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
when you open the cart and it’s empty, a warning appears indicating that the payment method is blocked for the current cart. In the filterPaymentMethods method, the second condition is always triggered because an empty Cart object is passed. In this case, the price is set to 0 if no lineItem exists, which causes the condition in line 23 (TotalPriceFilter) to evaluate as true. This condition then removes the payment method.
PaymentMethod removed in PayonePayment\Components\PaymentFilter\TotalPriceFilter
Error/warning added in PayonePayment\Components\PaymentFilter\PayonePaymentMethodValidator (Line 33)
I would appreciate it if you could take a look at this and share your feedback with me.
Hello PAYONE-Team,
when you open the cart and it’s empty, a warning appears indicating that the payment method is blocked for the current cart. In the
filterPaymentMethods
method, the second condition is always triggered because an emptyCart
object is passed. In this case, the price is set to 0 if nolineItem
exists, which causes the condition in line 23 (TotalPriceFilter) to evaluate as true. This condition then removes the payment method.PaymentMethod removed in PayonePayment\Components\PaymentFilter\TotalPriceFilter
Error/warning added in PayonePayment\Components\PaymentFilter\PayonePaymentMethodValidator (Line 33)
I would appreciate it if you could take a look at this and share your feedback with me.
Environment:
shopware: v6.6.8.2
payonepayment: 6.1.2
Kind regards
The text was updated successfully, but these errors were encountered: