• Resolved LearnEd Studio

    (@lesdeveloper)


    Hi Team,

    We faced an issue with an order on our WordPress-WooCommerce-based eShop where the payment was captured on RazorPay but the Order status still showed “Pending Payment”.

    Due to this status, furthre actions like the deduction in stock, creation of invoice were not triggered.

    RazorPay support confirmed there was no issue at their end.

    Upon checking the logs, we saw there was an error: {“message”:”validation error : url: cannot be blank.”}

    We also noticed that the webhook for the eShop at RazorPay was disabled; however, only this order has a problem with the status, not any of the others.

    We want to trace the cause of the issue as we’re not sure whether the above 2 discrepancies could cause this.

    Thanks!

    LearnEd Studio

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @lesdeveloper,

    Thank you for sharing the details about the issue you’re facing with the order status. To better understand the situation and assist you further, could you please provide the following information?

    1. Which plugin are you using for RazorPay integration?

    2. The System Status Report, which you can find under WooCommerce > Status > Get system report > Copy for support.

    3. Any fatal error logs under WooCommerce > Status > Logs. You can copy and paste the logs here or share them via https://gist.github.com/ and send us the link.

    4. A screenshot of the order notes for the affected order. You can find this in the order details screen in WooCommerce.

    Once we have these details, we’ll be able to investigate the cause and guide you accordingly.

    Thread Starter LearnEd Studio

    (@lesdeveloper)

    Hi Team,

    We faced this issue for one more order, where it even got Settled at RZP but it showed Customer Cancelled the Order on our webapp portal.

    We use the “1 Razorpay: Signup for FREE PG” plugin by Team RazorPay to integrate.

    Attaching Logs and Order Notes screenshots as requested.

    WC System Reports

    https://gist.github.com/les-dev/de40f79a26c4fa3a205bf80b5467ad11

    One of the RZP WooCommerce Logs

    https://gist.github.com/les-dev/08849d89335affa304acc88c276f5585

    Order Notes

    One thing to note is that RazorPay’s Webhook had been disabled at the time these orders dropped. Just in case it helps with your debugging.

    Thanks!

    Zee

    (@doublezed2)

    Hello LearnEd Studio,

    Thank you for your reply.

    One thing to note is that RazorPay’s Webhook had been disabled at the time these orders dropped. Just in case it helps with your debugging.

    Webhooks are responsible for communication between WooCommerce and the Payment Gateway.
    Since the webhooks were disabled when the two orders were placed, it is most likely that WooCommerce was not notified of any transaction at RazorPay.

    I recommend that you enable the webhooks and place a few test orders.
    This will confirm whether the issue is still occurring or not.

    It looks like screenshots of Order Notes did not go through.
    I suggest using a tool like https://snipboard.io to upload images and share links here.

    Let me know about the test results. 🙂

    Best regards.

    Thread Starter LearnEd Studio

    (@lesdeveloper)

    Hello Zubair,

    After activating the webhook, there have been no mishaps like this. Must have been a webhook failure issue.

    Order Notes: https://snipboard.io/cnemv8.jpg

    To further enquire, we want to keep the webhook active programatically. We were thinking we will write a cron job every night to forcefully call the webhook URL. Will this affect actual orders and functioning in any way? Is there a better way to handle webhook failures? Turning them on manually leaves much room for human error.

    Thanks!

    Plugin Support Feten L. a11n

    (@fetenlakhal)

    Hi there,

    Thanks for your answer.

    Forcefully calling the webhook URL via a nightly cron job is not recommended and could potentially cause issues.

    If webhook reliability remains a critical concern, consider consulting a WooCommerce developer to create a custom robust webhook management solution tailored to your specific requirements.

    I can recommend the Woo Developer Resources Portal for resources on developing for WooCommerce.com.

    You can also visit the WooCommerce Facebook group or the #developers channel of the Woo Community Slack. We’re lucky to have a great community of open-source developers for Woo, and many of our developers hang out there, as well.

    I hope this helps and let us know if you’ll have any further questions!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘RazorPay Integration Issue for Order Status’ is closed to new replies.