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
In "Pay with Paypal page" use the yellow paypal button, and confirm the payment on Paypal
You will be redirected to the homepage, but if you try to retry the payment it will fail cause it's in "PROCESSING" state but the CreatePayPalOrderAction class try to load the last payment with "NEW" state and it won't find any.
Possible solution
This does not happen with HostedFields cause there is an additional check here that cancel the payment if it is still processing after the complete call.
But i think that this solution is weak. If, for example, the user closes the page while the capture request is going on, it will never call the cancel payment. Or maybe due to another error, the cancel payment url could never be called, and the payment of the order will remain PROCESSING.
Probably, it should be responsibility of the CompletePayPalOrderAction controller to cancel the payment if it failed. What do you think?
The text was updated successfully, but these errors were encountered:
Generally, i think that the PayPalClient class should "handle" properly the cases in which Paypal return a response with a status code that is not 20X. Actually the Client only logs the error when that happen. Maybe it could throw exception and the classes that use the PayPalClient will catch that exception and operate consequently.
When the payment status is "processing", and the paypal status is "captured", the cancel last payment should re-capture the payment instead of mark the payment as "canceled" as the actual payment has already been done.
Steps to reproduce
Possible solution
This does not happen with HostedFields cause there is an additional check here that cancel the payment if it is still processing after the complete call.
But i think that this solution is weak. If, for example, the user closes the page while the capture request is going on, it will never call the cancel payment. Or maybe due to another error, the cancel payment url could never be called, and the payment of the order will remain PROCESSING.
Probably, it should be responsibility of the CompletePayPalOrderAction controller to cancel the payment if it failed. What do you think?
The text was updated successfully, but these errors were encountered: