2

We are trying to cancel an order where the PayPal Express payment has expired. It was a duplicate order that needs to be cleaned up from the system. However, when we try and cancel this order all we get is the following error...

PayPal gateway has rejected request. Authorization has expired (#10601: Authorization expired).

enter image description here

There are no invoices or shipments on this order. The status is just stuck on "Processing".

After walking through the code it appears to be attempting a void first inside Mage_Paypal_Model_express->cancel() which doesn't work since the original authorization is now expired. I know with PayPal IPN, Magento is updated with the fact that it is now expired. Is this a known issue with Magento 1.9 and PayPal Express? Does anyone have a fix for this or am I just missing something here?

3
  • Did you solve the issue?
    – zus
    Jul 18 '18 at 4:47
  • Unfortunately not yet. Jul 24 '18 at 17:52
  • I was just going to post the same issue. I discovered the issue is that PayPal authorization has expired, so the canceling the authorization fails. But that should NOT prevent the order from being canceled. This is a real problem / bug. I hate to do it, but I'm probably going to resort to forcing the order to a canceled status in the database.
    – MarkE
    Mar 8 '19 at 23:07
0

You can cancel the order with an expired authorization transaction following below steps:

  1. Copy txn_id from Sales -> Orders within magento admin.
  2. You can search txn_id within sales_payment_transaction table.
  3. Edit the row and chang field is_closed value from 0 to 1.
  4. After these steps you should be able to cancel order within magento admin.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.