• Resolved fredrikvestin

    (@fredrikvestin)


    Since switching to this plugin we have had a couple of payments that succeeds in Paypal but Woocommerce does not update the status, resulting in the order timing out and being aborted in Woocommerce even though it’s been paid. The timeout for orders are set to 24h and the orders have succeeded within minutes on Paypal. How do we solve this so we don’t have to double check payment status in Paypal and manually change status in Woocommerce?

    • This topic was modified 3 years, 5 months ago by fredrikvestin.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @fredrikvestin,

    Does this apply to all orders, or only to a few ones? If it’s the latter, do you see any similarities between the orders?
    When the order status is not changing, then there may be a problem with the webhooks. Our next update improves the webhook handling in many regards. But for now, one thing you could try would benow to re-register the webhook by performing the onboarding process via the “Connect to PayPal” button again.
    Could you please give that a try?
    Thanks!

    Kind regards,
    Niklas

    Thread Starter fredrikvestin

    (@fredrikvestin)

    I have now disconnected and reconnected the account. Since the problem only applied to a few orders I’ll have to wait and see. I will get back to you in this thread in case it still happens.

    Thread Starter fredrikvestin

    (@fredrikvestin)

    What I can say right away is that I also activated the logging function and to me the log looks like not everything is as it should be. Or perhaps this is normal messages for the log? (ID-strings replaced with X)

    2021-09-15T10:10:47+00:00 WARNING Failed to capture order. PayPal API response: [UNPROCESSABLE_ENTITY] The requested action could not be performed, semantically incorrect, or failed business validation. https://developer.paypal.com/docs/api/orders/v2/#error-ORDER_NOT_APPROVED
    2021-09-15T10:10:47+00:00 WARNING Could not capture payment for webhook event WH-XXXXXXXXXXXXXXX-XXXXXXXXXXXXXXX.
    2021-09-15T10:10:47+00:00 INFO Webhook has been handled by CHECKOUT.ORDER.APPROVED
    2021-09-15T10:11:14+00:00 WARNING No order for webhook event XX-XXXXXXXXXXXXX-XXXXXXXXXXXXXXX was found.
    2021-09-15T10:11:14+00:00 INFO Webhook has been handled by PAYMENT.CAPTURE.COMPLETED
    2021-09-15T10:11:35+00:00 WARNING Order for PayPal order XXXXXXXXXXXXXXXXXX not found.
    2021-09-15T10:11:35+00:00 INFO Webhook has been handled by CHECKOUT.ORDER.APPROVED
    2021-09-15T10:11:52+00:00 WARNING No order for webhook event XX-XXXXXXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXX was found.
    2021-09-15T10:11:52+00:00 INFO Webhook has been handled by PAYMENT.CAPTURE.COMPLETED
    2021-09-15T10:12:16+00:00 WARNING Order for PayPal order XXXXXXXXXXXXXXXX not found.
    2021-09-15T10:12:16+00:00 INFO Webhook has been handled by CHECKOUT.ORDER.APPROVED
    Thread Starter fredrikvestin

    (@fredrikvestin)

    Ok, so it happened again. The IPN history on paypal shows a 200 HTTP-response. The Paypal log (not the specific woocommerce paypal payments log) is blank at the time of the order/payment. The woocommerce paypal payments log is also blank at/around that time but is full of messages like:
    ERROR Illegit Webhook request detected.
    WARNING No order for webhook event WH-XXXXXXXXXXXXX-XXXXXXXXXXXXXXX was found.
    WARNING Order for PayPal order XXXXXXXXXXXXXXXX not found.
    WARNING Could not capture payment for webhook event WH-XXXXXXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXXX.
    WARNING Failed to capture order. PayPal API response: [UNPROCESSABLE_ENTITY] The requested action could not be performed, semantically incorrect, or failed business validation. https://developer.paypal.com/docs/api/orders/v2/#error-ORDER_NOT_APPROVED

    We are using the sequential order numbers plugin, are you handling order numbers in a way that is compatible with that?

    Thread Starter fredrikvestin

    (@fredrikvestin)

    @niklasinpsyde Any more things we can try?

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @fredrikvestin,

    Apologies for getting back to you just now.

    We recently added dedicated compatibility towards the sequential order numbers plugin and it should not cause any issues.
    We also implemented webhook improvements and a status dashboard for our next plugin update 1.6.0 which will make sure that the webhooks are handled properly.
    PayPal IPN is not being used by PayPal Payments as IPN does not work through the REST API. The communication happens through webhooks. So you can disregard eventual IPN errors as they are only relevant for previous or outdated integrations.
    But we would like to learn a bit more context about your site and would like to take a look at your WooCommerce system report.

    The system report can be accessed from here:
    WooCommerce > Status > Get system report > Copy for support
    You can share it either here in the forums or privately with us from here:
    https://paypal.inpsyde.com/docs/request-support/

    Thanks!

    Kind regards,
    Niklas

    Thread Starter fredrikvestin

    (@fredrikvestin)

    I tried using that link to report the issue but haven’t received any feedback. How do I know if you received the information?

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @fredrikvestin

    I checked our work queue and see that your ticket was received and @niklasinpsyde did respond to the ticket; it must be blocked by your spam filter.

    The response that was given is the following:

    Hi Fredrik,
    
    Thanks for reaching out with your system report.
    
    When the order status is not changing, then this is usually a problem related to the webhook registration.
    Our next plugin update will include a webhook overview dashboard that allows you to verify the webhook registration.
    
    For now, could you please check in your PayPal developer dashboard whether or not the webhook is registered under https://website.com/wp-json/paypal/v1/incoming?
    Setting up PayPal Webhooks: https://developer.paypal.com/docs/api-basics/notifications/webhooks/rest/#subscribe-to-events

    Please see if you can find the response and reply to it. Niklas is currently on holiday, but we will try to cover for him or he will reply to you once he gets back.

    Kind regards,
    Joost

    Plugin Support Syde Joost

    (@joostvandevijver)

    Since we haven’t heard back from you, I’m going to mark it as resolved.
    In case you’re still having problems, feel free to let us know!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Payments succeed in Paypal but Woocommerce doesn’t update status.’ is closed to new replies.