• Resolved prowatercraft

    (@prowatercraft)


    I am testing this PayPal Payments plugin on a local server to troubleshoot prior to bricking a live site. I am using Wampserver with all plugins deactivated besides WooCommerce and WooCommerce PayPal Payments, and the theme is Twenty Twenty-Two. I have created an order through the Woo admin panel and am completing payment through the link provided above the order status of ‘Pending Payment’. When clicking ‘Pay Now’ on the final PayPal popup window I am return back to the checkout page with ‘No PayPal order found in the current WooCommerce session.‘ What can I do to get this resolved?

    Wordpress is on the latest 5.9.3 and both plugins are up to date. The PayPal payment option on the checkout page is working by placing the order completely on the front end.

    The response on the debug log:

    2022-04-26T20:09:36+00:00 DEBUG POST https://api.paypal.com/v1/oauth2/token?grant_type=client_credentials
    Response Debug ID: b73ae5d77dec9
    Response: Array
    (
        [code] => 200
        [message] => OK
    )
    
    2022-04-26T20:09:36+00:00 DEBUG POST https://api.paypal.com/v2/checkout/orders
    Request Body: {"intent":"CAPTURE","purchase_units":[{"reference_id":"default","amount":{"currency_code":"USD","value":"1.00","breakdown":{"item_total":{"currency_code":"USD","value":"1.00"},"shipping":{"currency_code":"USD","value":"0.00"},"tax_total":{"currency_code":"USD","value":"0.00"}}},"description":"","items":[{"name":"ProWatercraft Stickers - RED","unit_amount":{"currency_code":"USD","value":"1.00"},"quantity":1,"description":"","sku":"Stickers","category":"PHYSICAL_GOODS","tax":{"currency_code":"USD","value":"0.00"}}],"payee":{"merchant_id":"M486K8RWMSTP6"},"shipping":{"name":{"full_name":"Christopher Hagest"},"address":{"country_code":"US","address_line_1":"1675 Kiowa Avenue Suite 110","admin_area_1":"AZ","admin_area_2":"Lake Havasu City","postal_code":"86403"}},"custom_id":"23973","invoice_id":"23973"}],"application_context":{"user_action":"CONTINUE","shipping_preference":"GET_FROM_FILE","landing_page":"LOGIN","locale":"en-US","brand_name":"ProWatercraft","return_url":"http:\/\/localhost\/wordpress\/wordpress\/?wc-ajax=ppc-return-url","cancel_url":"http:\/\/localhost\/wordpress\/checkout\/"},"payer":{"name":{"given_name":"Christopher","surname":"Hagest"},"email_address":"sales@lowandmean.com","address":{"country_code":"US","address_line_1":"1675 Kiowa Avenue Suite 110","admin_area_1":"AZ","admin_area_2":"Lake Havasu City","postal_code":"86403"},"phone":{"phone_type":"HOME","phone_number":{"national_number":"9282550230"}}},"payment_method":{"payee_preferred":"IMMEDIATE_PAYMENT_REQUIRED","payer_selected":"PAYPAL"}}
    Response Debug ID: ab72e16a13f62
    Response: Array
    (
        [code] => 201
        [message] => Created
    )
    
    2022-04-26T20:09:51+00:00 DEBUG  https://api.paypal.com/v2/checkout/orders/7GS4900575284081N
    Response Debug ID: 5bcbfffb8317d
    Response: Array
    (
        [code] => 200
        [message] => OK
    )
    
    • This topic was modified 1 year, 12 months ago by prowatercraft.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there,

    we have absolutely the same problem with our website and shop.
    A typical order created by a user in the frontend is processed correctly.

    But sometimes we need to create orders in the backend and send the payment link to the client. This causes the same error as described by @prowatercraft

    We’re using:
    WordPress 5.9.3
    WooCommerce PayPal Payments 1.7.1
    WooCommerce 6.3.1

    Kind regards
    Pascal

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @prowatercraft & @pascalbajorat,

    There is currently an issue that can affect guest checkouts from the “Pay for order” page, so for example when manually creating an order.

    We expect this issue to be resolved with the 1.8.1 update. A PR with a potential fix will be linked to this GitHub issue: https://github.com/woocommerce/woocommerce-paypal-payments/issues/605
    For the time being, the best way to prevent this error is to ensure the buyer is logged into a WordPress account on the shop site, as this issue only affects guest buyers.

    Kind regards,
    Niklas

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello,

    this fix was made available with the release of version 1.8.1. So far we have not received any reports of this issue after the release, so we will mark this thread as resolved. If you are still encountering this issue (or any other), please open a new thread, so we can take another look.

    Kind regards,
    Joost

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