Skip to content
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

Magento order status updated to “Processing” even when PayPal payment fails #324

Closed
wants to merge 1 commit into from
Closed

Conversation

dvdsndr
Copy link
Contributor

@dvdsndr dvdsndr commented Jul 30, 2017

Must remove invoices before cancel, otherwise order cancel will fail and status will go to go to processing

Must remove invoices before cancel, otherwise order cancel will fail and status will go to go to processing
@dvdsndr
Copy link
Contributor Author

dvdsndr commented Feb 24, 2018

Hi more detail on this at:
https://stackoverflow.com/questions/30936587/magento-order-status-updated-to-processing-even-when-paypal-payment-fails.

This is really bad for stores with ERP or warehouse integrations. Most integrations will use the status of "processing" to assume that the payment was ok and thus the goods can be shipped.

@dvdsndr dvdsndr changed the title Bug in IPN Magento order status updated to “Processing” even when PayPal payment fails Mar 20, 2018
@dvdsndr
Copy link
Contributor Author

dvdsndr commented Mar 20, 2018

Really surprised that others are not seeing this issue.

If payment fails, status should go Payment-Reveview > Cancelled
This bug is causing the status to go Payment-Review > Processing

Processing is the status for completed payments so consumers will get free goods!

Paypal does try to cancel the order but the cancellation fails as the order has a valid invoice, the invoice must be removed for the cancel to work

@tomekjordan
Copy link

You cannot just remove invoice. because for EU vat invoicing you must have all invoices in the system, one by one, without gap in numbering. the best if paypal would not create invoice automatically before successful payment is made. which probably is a standard behavior

@dvdsndr
Copy link
Contributor Author

dvdsndr commented Mar 22, 2018

Thats a fix out of my depth. Will need to leave that for others. Wonder if there is a way to mark the invoice cancelled instead of having to remove it??

@tbaden tbaden added the review needed Problem should be verified label Jun 1, 2019
@tbaden
Copy link
Collaborator

tbaden commented Jun 2, 2019

agree with @tomekjordan
the best way is to stop the automatic generation of invoices before the successful payment

@sreichel sreichel added bug Component: PayPal Relates to Mage_Paypal labels Jun 1, 2020
@fballiano
Copy link
Contributor

This PR is based on 1.9.3.x which is a non-maintained branch at this point. Since we can't work on this anymore I'm closing it. @dvdsndr if you feel like rewriting the PR on 1.9.4.x feel absolutely free to reopen it, it will be much appreciated.

@fballiano fballiano closed this Jun 2, 2022
@ADDISON74
Copy link
Collaborator

@fballiano - I noticed that you closed some of them and then rebased to 1.9.4.x. Where you can't do this please mark them with this label "needs rewrite for new versions" to keep track of them. When you finish please leave a message in any post you want to double check too.

@fballiano
Copy link
Contributor

@fballiano - I noticed that you closed some of them and then rebased to 1.9.4.x. Where you can't do this please mark them with this label "needs rewrite for new versions" to keep track of them. When you finish please leave a message in any post you want to double check too.

as you see from the comment above that's precisely what I wrote :-)
in other PRs I removed the message since @tmotyl explained me that I could rebase the PRs myself ;-)

@ADDISON74
Copy link
Collaborator

Good advice from @tmotyl.

Shouldn't you rebase this PR too?

Did you rebase the PR's from this here #2184?

@fballiano
Copy link
Contributor

can't be done since original author deleted the repo. anyway #2183 it's exactly the same thing

@ADDISON74
Copy link
Collaborator

In this case I will mark this one and #2183 with that label and we will have to recreate them at some point if those changes still exist. It was expected that we would encounter such issues in the conditions in which some PRs had been posted for a long time.

@ADDISON74 ADDISON74 added needs rewrite for new versions and removed bug review needed Problem should be verified Component: PayPal Relates to Mage_Paypal labels Jun 2, 2022
@fballiano
Copy link
Contributor

Again, if we approve that other pr it is exactly the same as this one. No need for anything.

@ADDISON74
Copy link
Collaborator

OK then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants