-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WooCommerce orders left in “Pending Payment” after a decline #222
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ok, but I have a few questions to be absolutely sure.
'failed', | ||
__( 'Instrument declined.', 'woocommerce-paypal-payments' ) | ||
); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should work, but I have some doubts about it.
The code below gives 3 tries, from what I can see, before suggesting the customer using another payment method. Does it make sense if the order is already marked as failed?
Another thing I'm not sure about is why it checks for the INSTRUMENT_DECLINED
only? I know, it's out of the scope of this PR, but just want to make sure there will be no problems with it. It looks like the order will be marked as failed only in case of this error 🤔 Is it the expected result?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @strangerkir thanks for the feedback,
Regarding retrying, if payment is accepted on second or third try order status changes from failed
to on-hold
first and then to processing
, I´ve checked and it works like so now.
About the INSTRUMENT_DECLINED
only, I have just added failed
order status to the other two failing cases, thanks for the hint :)
Description
WooCommerce orders left in “Pending Payment” after a decline.
Steps to test:
Use this filter to return a
INSTRUMENT_DECLINED
error in the response.Changelog entry