Sylius / PayPalPlugin

Official integration with PayPal Commerce Platform
36 stars 54 forks source link

[Bug] When the customer clicks on "back to shop" once he is on the paypal page, there are two payments created #262

Open costa-jeremy opened 1 year ago

costa-jeremy commented 1 year ago

When the customer clicks on "back to shop" once he is on the paypal page, there are two payments created (one in state cart and the other in state new) which creates further problems. it should normally have only one payment created, state "new". Here a screen : image

I think the problem is on all versions of this plugin.

The solution is to remove this line 54 i think, but i m not sure. https://github.com/Sylius/PayPalPlugin/blob/master/src/Controller/CancelLastPayPalPaymentAction.php#L54