• Resolved qwik3r

    (@qwik3r)


    Hello,

    I had an order that didn’t complete via PayPal, it said it failed and in the notes had this: Error processing payment. Reason: Order already captured.If ‘intent=CAPTURE’ only one capture per order is allowed.

    I went into PayPal and saw that the payment did indeed complete though.

    I am using version 1.0.30 if that matters. (I know there’s a new version out but I have to test updating on my staging site first as I always do).

    Any help would be great. Thanks!

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @qwik3r

    If you check the order notes for that order does it have the transaction ID in a note before the failure note?

    Can you provide a screenshot of the order notes so we can review? I’d like to see the sequence of events.

    Kind Regards

    Thread Starter qwik3r

    (@qwik3r)

    Hi there,

    Unfortunately there is no transaction ID which was even more concerning. Normally at the top it might say PayPal (link to transaction id) but it does not, and nothing in the notes: https://share.getcloudapp.com/QwuwRrmp. The last note at the top that says “changed from failed to completed” was just me manually changing the status after I saw in PayPal that the transaction settled.

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @qwik3r

    Can you go to the WooCommerce > Status > Logs page and share the wc-ppcp log file for that failed order? I’d like to see what PayPal’s API returned.

    I’d also like to see if a webhook event came in right before the plugin attempted to capture the payment via the checkout page.

    PayPal should not automatically capture any payments but it seems like that’s what happened for this payment for some reason.

    Kind Regards,

    Thread Starter qwik3r

    (@qwik3r)

    I don’t have any recent logs for wc-ppcp, the last one is from May.

    Plugin Author Payment Plugins

    (@mrclayton)

    @qwik3r Do you have debugging turned off? Anytime there is a failed API request, the plugin adds an entry to the wc-ppcp log file.

    Make sure you don’t have any permission issues on your server that would prevent a log file from being written.

    Kind Regards

    Thread Starter qwik3r

    (@qwik3r)

    Sorry, was looking at the wrong site. So the date of the transaction for this customer was June 4th and this was the only thing in the wc-ppcp log:

    https://share.getcloudapp.com/eDuEvJDJ

    Plugin Author Payment Plugins

    (@mrclayton)

    There should be a log entry for the failed payment request, the plugin always writes a log entry for a failed API request. See if there is another log file.

    Thread Starter qwik3r

    (@qwik3r)

    I don’t know what to tell you, there are literally 6 log files and the one I posted is the only one anywhere near the date of the incident… nothing in there from wc-ppcp shows anything about failed.

    Plugin Author Payment Plugins

    (@mrclayton)

    I’ve looked through all of the PayPal documentation and many support threads and there isn’t any consensus on why that error sometimes occurs with a PayPal transaction.

    I have a theory that’s internal to PayPal and they sometimes trigger a capture of the order internally. I think the best option is to add a defensive check via the plugin so if that error occurs, the plugin continues to process the order and ultimately redirects the customer to the thank you page, since the payment did in fact get completed.

    Kind Regards

    Thread Starter qwik3r

    (@qwik3r)

    Thanks. How do I add a “defense check” ?

    Plugin Author Payment Plugins

    (@mrclayton)

    How do I add a “defense check” ?

    I was referring to adding that check in the next plugin update.

    Thanks,

    Thread Starter qwik3r

    (@qwik3r)

    Ah ok, thank you!

    Plugin Author Payment Plugins

    (@mrclayton)

    Version 1.0.34 released which checks if the order has already been captured.

    Thread Starter qwik3r

    (@qwik3r)

    Thank you for the update!

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Payment capture issue’ is closed to new replies.