Woocommerce PayPal Payments error “Order approve failed”
-
Hi
I’m having a problem with a customer who is getting error everytime he tries to pay with PayPal. I copy&paste what the log says just below (removing some private data), and FYI I’m using last version 1.6.2:”
2021-12-14T09:12:51+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”:”57.42″},”description”:””,”payee”:{“merchant_id”:”FB9Q7V7X7L698″},”shipping”:{“name”:{“full_name”:”XXXXX”},”address”:{“country_code”:”DE”,”address_line_1″:”XXXXX”,”address_line_2″:””,”admin_area_1″:””,”admin_area_2″:”XXXXX”,”postal_code”:”XXXXX”}}}],”application_context”:{“user_action”:”CONTINUE”,”shipping_preference”:”SET_PROVIDED_ADDRESS”,”landing_page”:”LOGIN”,”locale”:”en-US”,”brand_name”:”Tactical Freaky”,”return_url”:”https:\/\/tacticalfreaky.com\/?wc-ajax=ppc-return-url”,”cancel_url”:”https:\/\/tacticalfreaky.com\/checkout\/”},”payer”:{“name”:{“given_name”:”XXXXX”,”surname”:”XXXXX”},”email_address”:”XXXXXXX”,”address”:{“country_code”:”DE”,”address_line_1″:”XXXXXXX”,”address_line_2″:””,”admin_area_1″:””,”admin_area_2″:”XXXXXX”,”postal_code”:”XXXXX”}},”payment_method”:{“payee_preferred”:”IMMEDIATE_PAYMENT_REQUIRED”,”payer_selected”:”PAYPAL”}}
Response Debug ID: 9201e42d5fb39
Response: Array
(
[code] => 201
[message] => Created
)2021-12-14T09:12:51+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":"57.42"},"description":"","payee":{"merchant_id":"FB9Q7V7X7L698"},"shipping":{"name":{"full_name":"XXXXXX"},"address":{"country_code":"DE","address_line_1":"XXXXX","address_line_2":"","admin_area_1":"","admin_area_2":"XXXX","postal_code":"XXXXXX"}}}],"application_context":{"user_action":"CONTINUE","shipping_preference":"SET_PROVIDED_ADDRESS","landing_page":"LOGIN","locale":"en-US","brand_name":"Tactical Freaky","return_url":"https:\/\/tacticalfreaky.com\/?wc-ajax=ppc-return-url","cancel_url":"https:\/\/tacticalfreaky.com\/checkout\/"},"payer":{"name":{"given_name":"XXXXX","surname":"XXXXX"},"email_address":"XXXXX","address":{"country_code":"DE","address_line_1":"XXXXXXX","address_line_2":"","admin_area_1":"","admin_area_2":"XXXXXXX","postal_code":"XXXXX"}},"payment_method":{"payee_preferred":"IMMEDIATE_PAYMENT_REQUIRED","payer_selected":"PAYPAL"}}
Response Debug ID: c20dcfa925d65
Response: Array
(
[code] => 201
[message] => Created
)2021-12-14T09:12:55+00:00 DEBUG https://api.paypal.com/v2/checkout/orders/7XW61358NW324841V
Response Debug ID: 499cba28387c0
Response: Array
(
[code] => 200
[message] => OK
)2021-12-14T09:12:55+00:00 ERROR Order 7XW61358NW324841V is not approved yet.
2021-12-14T09:12:55+00:00 ERROR Order approve failed: Order 7XW61358NW324841V is not approved yet.
Expand
"After the customer follows all the process (login into PayPal, confirming payment, etc), when back in the store he gets an error "Something went wrong" which in the log shows up as "Order approve failed"
Can you help please?
Xavi
- The topic ‘Woocommerce PayPal Payments error “Order approve failed”’ is closed to new replies.