You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of version 1.6.4, when the payment is successful at PayPal but the order for some reason fails in WooCommerce, there is no information logged about the failure. The WooCommerce order only shows a generic error in the order notes: Could not process order. Order status changed from Pending payment to Failed.
The same error is displayed when a payment has been rejected at PayPal. The PayPal Card Processing creates a Failed WooCommerce order with the same error.When logging is disabled in the plugin, then the merchant would have no clue as to what caused the order to fail.
Install and activate 'Negative testing instrument declined' plugin attached above.
Place an order.
It will trigger INSTRUMENT_DECLINED by redirecting to PayPal site and will include two more payment tries until it fails displaying the error message in checkout screen.
Expected Behavior
After failing it should display INSTRUMENT_DECLINED error message in the order note.
Actual Behavior
Only displays a generic error in checkout screen.
Environment
WordPress Version: 5.9
WooCommerce Version: 6.1
Plugin Version: 1.6.4
The text was updated successfully, but these errors were encountered:
As of version 1.6.4, when the payment is successful at PayPal but the order for some reason fails in WooCommerce, there is no information logged about the failure. The WooCommerce order only shows a generic error in the order notes: Could not process order. Order status changed from Pending payment to Failed.
The same error is displayed when a payment has been rejected at PayPal. The PayPal Card Processing creates a Failed WooCommerce order with the same error.When logging is disabled in the plugin, then the merchant would have no clue as to what caused the order to fail.
Printing the API response that caused the order to fail in the order notes can help the store owner&user to better understand the problem:https://developer.paypal.com/api/rest/reference/orders/v2/errors/
Example case: User pays with a credit card via DCC and PayPal rejects the payment with: INSTRUMENT_DECLINED
The order notes could then display the API error with a description:
Negative testing instrument declined plugin
negative-testing-instrument-declined.php.zip
To Reproduce
INSTRUMENT_DECLINED
by redirecting to PayPal site and will include two more payment tries until it fails displaying the error message in checkout screen.Expected Behavior
After failing it should display
INSTRUMENT_DECLINED
error message in the order note.Actual Behavior
Only displays a generic error in checkout screen.
Environment
The text was updated successfully, but these errors were encountered: