No PayPal order found in the current WooCommerce session.
-
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":"[email protected]","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 )
- The topic ‘No PayPal order found in the current WooCommerce session.’ is closed to new replies.