Order canceled after Pyapal Payment confirm
-
In the WooCommerce sometimes we are facing a problem when customers pay the amount through Paypal sometimes the order is canceled in the backend automatically. We don’t know why this happens.
To debug the process, we enabled the IPN logs.In the bellow, you see the log which is canceled.
2022-03-01T03:57:30+00:00 INFO Generating payment form for order 7417. Notify URL: https://iwerk24.com/wc-api/WC_Gateway_Paypal/ 2022-03-01T03:57:30+00:00 INFO PayPal Request Args for order 7417: Array ( [cmd] => _cart [business] => [email protected] [no_note] => 1 [currency_code] => EUR [charset] => utf-8 [rm] => 2 [upload] => 1 [return] => https://iwerk24.com/checkout/order-received/32318/?key=wc_order_PcxSQB6m29cT8&utm_nooverride=1 [cancel_return] => https://iwerk24.com/checkout/order-received/32318/?key=wc_order_PcxSQB6m29cT8&retry=1 [image_url] => [paymentaction] => sale [invoice] => WC-7417 [custom] => {"order_id":32318,"order_key":"wc_order_PcxSQB6m29cT8"} [notify_url] => https://iwerk24.com/wc-api/WC_Gateway_Paypal/ [first_name] => *** [last_name] => *** [address1] => *** [address2] => *** [city] => *** [state] => *** [zip] => *** [country] => *** [email] => ***@*** [night_phone_a] => *** [night_phone_b] => *** [address_override] => 0 [no_shipping] => 0 [shipping_1] => 4.90 [item_name_1] => Holzpaneel Alm x 2 [quantity_1] => 1 [amount_1] => 163.78 [item_number_1] => 7417 [bn] => WooThemes_Cart )
Here is another logs message which the order is confirmed and we didn’t have any problem with this order.
2022-03-01T03:59:06+00:00 INFO Received valid response from PayPal IPN 2022-03-01T03:59:06+00:00 INFO Found order #32318 2022-03-01T03:59:06+00:00 INFO Payment status: completed 2022-03-01T03:59:10+00:00 INFO Found order #32318 2022-03-01T03:59:10+00:00 INFO Payment status: completed 2022-03-01T03:59:10+00:00 INFO Aborting, Order #32318 is already complete. 2022-03-01T08:48:35+00:00 INFO Generating payment form for order 7418. Notify URL: https://iwerk24.com/wc-api/WC_Gateway_Paypal/ 2022-03-01T08:48:35+00:00 INFO PayPal Request Args for order 7418: Array ( [cmd] => _cart [business] => [email protected] [no_note] => 1 [currency_code] => EUR [charset] => utf-8 [rm] => 2 [upload] => 1 [return] => https://iwerk24.com/checkout/order-received/32319/?key=wc_order_pZzYBukbBQNd6&utm_nooverride=1 [cancel_return] => https://iwerk24.com/checkout/order-received/32319/?key=wc_order_pZzYBukbBQNd6&retry=1 [image_url] => [paymentaction] => sale [invoice] => WC-7418 [custom] => {"order_id":32319,"order_key":"wc_order_pZzYBukbBQNd6"} [notify_url] => https://iwerk24.com/wc-api/WC_Gateway_Paypal/ [first_name] => *** [last_name] => *** [address1] => *** [address2] => *** [city] => *** [state] => *** [zip] => *** [country] => *** [email] => ***@*** [night_phone_a] => *** [night_phone_b] => *** [address_override] => 0 [no_shipping] => 0 [item_name_1] => Musterpaket 1-6 Designs (: Alm, Berg & Tal, Erd, Kupfer, Old Beton, Wurzel) x 1 [quantity_1] => 1 [amount_1] => 4.99 [item_number_1] => 7418 [bn] => WooThemes_Cart )
If I compare the two logs then I see that the order which is canceled has less entry at the beginning and the order which is completed as an entry where it mentioned ‘INFO Payment status: completed’
we wanted to know why this order is get canceled what would be the reason for this.
The page I need help with: [log in to see the link]
- The topic ‘Order canceled after Pyapal Payment confirm’ is closed to new replies.