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
Description
The "CancelLastPayPalPaymentAction" is called even when the payment page in "unloaded" due to a successful payment. This lead to call the transition "cancel" on the payment even if it's completed and results in an error like this:
Uncaught PHP Exception SM\SMException: "Transition "cancel" cannot be applied on state "completed" of object "App\Entity\Payment\Payment" with graph "sylius_payment""
Steps to reproduce
Place an order with a successful payment
You can see in the network tab or in the log (it depends on your monolog settings) that the request to "cancel-last-pay-pal-payment" failed with a 500.
Possible Solution
This is due to this. The cancel transition is called without checking if it can be run (with ->can()).
There is also this point in which this change should be applied.
The text was updated successfully, but these errors were encountered:
SyliusPayPalPlugin version affected: >=1.3.2
Description
The "CancelLastPayPalPaymentAction" is called even when the payment page in "unloaded" due to a successful payment. This lead to call the transition "cancel" on the payment even if it's completed and results in an error like this:
Steps to reproduce
Possible Solution
This is due to this. The cancel transition is called without checking if it can be run (with ->can()).
There is also this point in which this change should be applied.
The text was updated successfully, but these errors were encountered: