• Hello Team,

    After the recent WooCommerce 6.3.1 update, I’ve switched from PayPal Standard to WooCommerce PayPal Payments gateway and followed instructions from https://woocommerce.com/document/woocommerce-paypal-payments/ to connect everything properly, Some of the orders I am receiving payment under PayPal, but under WooCommerce Order Notes, I am getting below error.

    Order Notes:

    Could not process order. No PayPal order found in the current WooCommerce session. Order status changed from Pending payment to Failed.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @princebhalani143,

    The error you mentioned can occur when the buyer clicks the regular “Place order” button.
    It can take a few seconds for the “Place order” button to be replaced with the smart buttons on the first page load so there’s a small chance of a user actually clicking it. Usually, it should only take a few seconds for the button to be replaced though.
    For the next update, the regular button will likely be hidden to prevent users from clicking the button and creating a failed order.

    Kind regards,
    Niklas

    Thread Starter Group Of Oceninfo

    (@princebhalani143)

    @niklasinpsyde Thank you for your response. Looking forward to the latest update, I’ll keep monitoring the system.

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @princebhalani143,

    If you’d like to test it with a preview version, there’s a potential fix available from here: https://drive.google.com/uc?export=download&id=1DcVMQOjNdkL63U77984cdDDzJgja04he
    So far, this package has only passed initial testing, so it should be used preferably in a staging environment.
    The regular “Place order” button will be hidden with that version but we are looking into further improvements.
    In the coming week or two, there should be another pre-release version available on GitHub: https://github.com/woocommerce/woocommerce-paypal-payments/releases

    In any case, WooCommerce would create a failed order when clicking the “Place order” button but usually a second or two after that the smart buttons appear. If the buyer confirms the order then (with the proper buttons), all should work fine. So this error shouldn’t be a major concern beyond being an annoyance.

    Kind regards,
    Niklas

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    For the moment, we see only one cause for the error and that can happen on slow connections when it takes too long for the regular “Place order” button to be replaced with the PayPal smart buttons and the user ends up clicking it. Or when the merchant ends up manually connecting invalid API credentials.
    While creating an unwanted failed order is rarely ideal, this particular scenario we are attempting to resolve shouldn’t be causing any major problems though.
    The latest pre-release version on Github prevents users from clicking the “wrong button” by replacing it sooner with a spinner: https://drive.google.com/uc?export=view&id=1FxyVIZRMRv8QmlORJqOM0OxF9Vcoai9C
    https://github.com/woocommerce/woocommerce-paypal-payments/releases/tag/1.7.1-test1

    So far, we have only seen sporadic occurrences of this error which could mostly be traced back to the above-mentioned behavior, so the vast majority of these errors should be prevented with the next version. It may still take a few seconds for the smart buttons to load but it should be more clear that the gateway is not yet ready for use.
    However, if you encounter a more serious issue that prevents every attempted checkout with the smart buttons and only happens to display the same error message, then please send us a private support request as described here so we can look into it further:
    https://wordpress.org/support/topic/guide-to-the-woocommerce-paypal-payments-support-forum/
    Thanks!

    Kind regards,
    Niklas

    Thread Starter Group Of Oceninfo

    (@princebhalani143)

    @niklasinpsyde I’ve installed the 1.7.1 version, and it seems the issue is still present, getting a similar message.

    Could not process order. No PayPal order found in the current WooCommerce session. Order status changed from Pending payment to Failed.

    Please note that the Paypal account has received funds.

    Sometimes, a team creates manual orders from the backend and sends a direct payment link (/checkout/order-pay/orderid?pay_for_order=true&key=wc_order_key) to the customer.

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @princebhalani143,

    Apologies, I guess we’ve been looking the wrong way as there can be multiple causes for the mentioned error message. Anyway, we isolated an issue relating to manually created orders when a guest user (not logged in) attempts to complete the payment from the “Pay for order” page.
    When the buyer is logged into an account, it should be working as intended but we are looking into what’s preventing the guest checkout from working for manually created orders.

    Kind regards,
    Niklas

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    I have archived the many replies from “I have this problem too”. I am closing this topic to new replies for that reason.

    If you need support then per the forum guidelines please start your own topic.

    https://wordpress.org/support/forum-user-guide/faq/#i-have-the-same-problem-can-i-just-reply-to-someone-elses-post-with-me-too

    You can do so here.
    https://wordpress.org/support/plugin/woocommerce-paypal-payments/

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘No PayPal order found in the current WooCommerce session.’ is closed to new replies.