[UNPROCESSABLE_ENTITY] Failed Order but Payment went through
-
Hello, occasionally my storefront experiences this issue and I’ve started investigating why this occurs; it is random and not consistent as some orders go through without an issue. Basically, user enters their Credit Card info on the page, and, after submitting, the result is a Failed Order notification on my end. What is more puzzling is that PayPal sends a confirmation email that the payment went through to the customer as well as me, however the WooCommerce order fails with the error noted below.
I am using the following versions of plug-ins
WooCommerce 7.4.0
WooCommerce PayPal Payments 2.0.4
Here is the error I get in the order details:
Failed to process the payment. Please try again or contact the shop admin. [UNPROCESSABLE_ENTITY] The requested action could not be performed, semantically incorrect, or failed business validation. https://developer.paypal.com/docs/api/orders/v2/#error-ORDER_NOT_APPROVED PayPalGateway.php:525 [UNPROCESSABLE_ENTITY] The requested action could not be performed, semantically incorrect, or failed business validation. https://developer.paypal.com/docs/api/orders/v2/#error-ORDER_NOT_APPROVED OrderEndpoint.php:327 Order status changed from Pending payment to Failed.
-
Hi @zoonars
This error response can occur under different circumstances, and from the error alone it’s not easy to tell what would cause it periodically for you.
To better judge what could be causing this, we are interested in a copy of your WooCommerce system report.
The system report can be accessed here:WooCommerce > Status > Get system report > Copy for support
You can share it either here in the forums or privately with us from here in the forums or privately with the support team.
Please include a link to this thread if you send a private message.Thanks!
Kind regards,
NiklasHello,
Thank you for the response, here is the info.
` ### WordPress Environment ### WordPress address (URL): https://nadiyascupcakes.com Site address (URL): https://nadiyascupcakes.com WC Version: 7.4.0 REST API Version: ✔</img> 7.4.0 WC Blocks Version: ✔</img> 9.4.3 Action Scheduler Version: ✔</img> 3.5.4 Log Directory Writable: ✔</img> WP Version: ❌</img> 6.1.1 - There is a newer version of WordPress available (6.2) WP Multisite: – WP Memory Limit: 500 MB WP Debug Mode: – WP Cron: ✔</img> Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.4.33 PHP Post Max Size: 500 MB PHP Time Limit: 600 PHP Max Input Vars: 5000 cURL Version: 8.0.1 OpenSSL/1.1.1t SUHOSIN Installed: – MySQL Version: 5.7.23-23 Max Upload Size: 500 MB Default Timezone is UTC: ✔</img> fsockopen/cURL: ✔</img> SoapClient: ✔</img> DOMDocument: ✔</img> GZip: ✔</img> Multibyte String: ✔</img> Remote Post: ✔</img> Remote Get: ✔</img> ### Database ### WC Database Version: 7.4.0 WC Database Prefix: wp_ Total Database Size: 41.70MB Database Data Size: 29.98MB Database Index Size: 11.72MB wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_order_items: Data: 0.06MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_order_itemmeta: Data: 0.38MB + Index: 0.33MB + Engine InnoDB wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_actions: Data: 2.02MB + Index: 0.70MB + Engine InnoDB wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_logs: Data: 2.02MB + Index: 1.17MB + Engine InnoDB wp_ahm_events: Data: 0.05MB + Index: 0.05MB + Engine InnoDB wp_ahm_pages: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Data: 0.19MB + Index: 0.25MB + Engine InnoDB wp_gdpr_cc_options: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nf3_actions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_nf3_action_meta: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_nf3_chunks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_nf3_fields: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_nf3_field_meta: Data: 0.02MB + Index: 0.00MB + Engine MyISAM wp_nf3_forms: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_nf3_form_meta: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_nf3_objects: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_nf3_object_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_nf3_relationships: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_nf3_upgrades: Data: 0.02MB + Index: 0.00MB + Engine MyISAM wp_options: Data: 6.41MB + Index: 0.13MB + Engine InnoDB wp_postmeta: Data: 9.17MB + Index: 4.47MB + Engine InnoDB wp_posts: Data: 3.14MB + Index: 0.28MB + Engine InnoDB wp_revslider_css: Data: 0.13MB + Index: 0.00MB + Engine InnoDB wp_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_navigations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_sliders: Data: 0.08MB + Index: 0.00MB + Engine InnoDB wp_revslider_slides: Data: 0.30MB + Index: 0.00MB + Engine InnoDB wp_revslider_static_slides: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_sib_model_contact: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_snp_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_snp_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_statistics_exclusions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_statistics_historical: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_statistics_pages: Data: 0.60MB + Index: 1.44MB + Engine MyISAM wp_statistics_search: Data: 0.02MB + Index: 0.03MB + Engine MyISAM wp_statistics_useronline: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_statistics_visit: Data: 0.02MB + Index: 0.02MB + Engine MyISAM wp_statistics_visitor: Data: 0.78MB + Index: 0.86MB + Engine MyISAM wp_statistics_visitor_relationships: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_tm_taskmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_tm_tasks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_usermeta: Data: 0.09MB + Index: 0.03MB + Engine InnoDB wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_admin_notes: Data: 0.09MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_note_actions: Data: 0.06MB + Index: 0.02MB + Engine InnoDB wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_product_lookup: Data: 0.11MB + Index: 0.06MB + Engine InnoDB wp_wc_order_stats: Data: 0.06MB + Index: 0.05MB + Engine InnoDB wp_wc_order_tax_lookup: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 0.01MB + Index: 0.03MB + Engine MyISAM wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_zapier_history: Data: 0.06MB + Index: 0.00MB + Engine InnoDB wp_wdi_feeds: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wdi_themes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfpklist_template_data: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yith_wcwl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yith_wcwl_lists: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_yoast_indexable: Data: 2.98MB + Index: 0.50MB + Engine MyISAM wp_yoast_indexable_hierarchy: Data: 0.09MB + Index: 0.28MB + Engine MyISAM wp_yoast_migrations: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_yoast_primary_term: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_yoast_seo_links: Data: 0.04MB + Index: 0.02MB + Engine MyISAM wp_yoast_seo_meta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM ### Post Type Counts ### attachment: 183 chronosly: 4 chronosly_calendar: 1 header_builder: 1 nav_menu_item: 15 nitro-gallery: 2 page: 15 popup: 3 popup_theme: 8 post: 1 product: 45 product_variation: 78 shop_coupon: 3 shop_order: 514 shop_order_refund: 18 sl-insta-account: 1 sl-insta-feed: 1 sl-insta-media: 9 snp_mail_log: 34 snp_popups: 1 tribe_events: 4 tribe_venue: 4 vc_grid_item: 3 wdi_instagram: 1 wpcf7_contact_form: 3 wr_mapper: 2 ### Security ### Secure connection (HTTPS): ✔</img> Hide errors from visitors: ✔</img> ### Active Plugins (36) ### Advanced Database Cleaner: by Younes JFR. – 3.1.2 Akismet Anti-Spam: Spam Protection: by Automattic - Anti Spam Team – 5.1 Aurora Heatmap: by R3098 – 1.5.6 Classic Editor: by WordPress Contributors – 1.6.3 Contact Form 7: by Takayuki Miyoshi – 5.7.4 Customizer Export/Import: by The Beaver Builder Team – 0.9.6 Display PHP Version: by David Gwyer – 1.7 Drag and Drop Multiple File Upload - Contact Form 7: by Glen Don L. Mongaya – 1.3.6.7 Duplicate Page: by mndpsingh287 – 4.5.1 Facebook for WooCommerce: by Facebook – 3.0.11 GDPR Cookie Compliance: by Moove Agency – 4.11.1 Jetpack: by Automattic – 11.8.3 WPBakery Page Builder: by Michael M - WPBakery.com – 6.4.1 Kadence WooCommerce Email Designer: by Kadence WP – 1.5.7 Meta Box Conditional Logic: by Tan Nguyen – 1.6.7 Meta Box: by MetaBox.io – 5.6.4 Nitro Gallery: by WooRockets – 1.0.4 Nitro Toolkit: by WooRockets Team – 1.1.13 Popup Maker: by Popup Maker – 1.18.1 WooCommerce PDF Invoices, Packing Slips, Delivery Notes and Shipping Labels: by WebToffee – 4.0.8 Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 3.1.5 Spotlight - Social Media Feeds: by RebelCode – 1.4.4 Sucuri Security - Auditing, Malware Scanner and Hardening: by Sucuri Inc. – 1.8.39 W3 Total Cache: by BoldGrid – 2.3.1 ELEX Easypost WooCommerce Extension (BASIC): by ELEX – 1.2.5 WooCommerce Admin Panel Order Due Column: by Vitaliy Vuchastyy – 1.0 WooCommerce PayPal Payments: by WooCommerce – 2.0.4 Sendinblue - WooCommerce Email Marketing: by Sendinblue – 3.0.5 WooCommerce Shipping & Tax: by WooCommerce – 2.2.4 WooCommerce Zapier: by OM4 Software – 2.4.1 WooCommerce: by Automattic – 7.4.0 (update to version 7.6.0 is available) Yoast SEO: by Team Yoast – 20.5 WP Mail SMTP: by WPForms – 3.7.0 WPS Hide Login: by WPServeur NicolasKulka wpformation – 1.9.8 WR Content Migration: by WooRockets – 1.0.0 WR Custom Attributes: by WooRockets – 1.1.12 ### Inactive Plugins (1) ### ELEX Address Validation & Google Address Auto Complete Plugin for WooCommerce (Basic): by ELEX – 1.3.5 ### Dropin Plugins (2) ### advanced-cache.php: advanced-cache.php db.php: db.php ### Must Use Plugins (2) ### Endurance Page Cache: by Mike Hansen – 2.2 SSO: by Garth Mortensen Mike Hansen – 0.4 ### Settings ### API Enabled: ✔</img> Force SSL: ✔</img> Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: ✔</img> Enforce Approved Product Download Directories: – Order datastore: WC_Order_Data_Store_CPT ### WC Pages ### Shop base: #4 - /shop-online/ Cart: #5 - /cart/ Checkout: #6 - /checkout/ My account: ❌</img> Page visibility should be public Terms and conditions: ❌</img> Page not set ### Theme ### Name: WR Nitro Child Version: 1.0.0 Author URL: http://www.woorockets.com/ Child Theme: ✔</img> Parent Theme Name: WR Nitro Parent Theme Version: 1.7.9 Parent Theme Author URL: http://www.woorockets.com/ WooCommerce Support: ✔</img> ### Templates ### Overrides: wr-nitro/woocommerce/archive-product.php wr-nitro/woocommerce/cart/cart-shipping.php version 3.6.0 is out of date. The core version is 7.3.0 wr-nitro/woocommerce/cart/cart-totals.php wr-nitro/woocommerce/cart/cart.php version 3.8.0 is out of date. The core version is 7.4.0 wr-nitro/woocommerce/cart/cross-sells.php wr-nitro/woocommerce/cart/mini-cart.php version 3.7.0 is out of date. The core version is 5.2.0 wr-nitro/woocommerce/cart/shipping-calculator.php version 4.0.0 is out of date. The core version is 7.0.1 wr-nitro/woocommerce/checkout/form-checkout.php wr-nitro/woocommerce/checkout/review-order.php version 3.8.0 is out of date. The core version is 5.2.0 wr-nitro/woocommerce/checkout/thankyou.php wr-nitro/woocommerce/content-product.php wr-nitro/woocommerce/content-single-product.php wr-nitro/woocommerce/content-widget-product.php wr-nitro/woocommerce/global/breadcrumb.php wr-nitro/woocommerce/global/quantity-input.php version 4.0.0 is out of date. The core version is 7.4.0 wr-nitro/woocommerce/global/wrapper-end.php wr-nitro/woocommerce/global/wrapper-start.php wr-nitro/woocommerce/loop/add-to-cart.php wr-nitro/woocommerce/loop/loop-end.php wr-nitro/woocommerce/loop/loop-start.php wr-nitro/woocommerce/loop/orderby.php wr-nitro/woocommerce/loop/pagination.php wr-nitro/woocommerce/loop/sale-flash.php wr-nitro/woocommerce/myaccount/dashboard.php wr-nitro/woocommerce/myaccount/downloads.php wr-nitro/woocommerce/myaccount/form-edit-account.php version 3.5.0 is out of date. The core version is 7.0.1 wr-nitro/woocommerce/myaccount/form-login.php version 4.1.0 is out of date. The core version is 7.0.1 wr-nitro/woocommerce/myaccount/my-account.php wr-nitro/woocommerce/myaccount/my-address.php wr-nitro/woocommerce/myaccount/navigation.php wr-nitro/woocommerce/myaccount/orders.php version 3.7.0 is out of date. The core version is 7.0.1 wr-nitro/woocommerce/single-product/add-to-cart/external.php version 3.4.0 is out of date. The core version is 7.0.1 wr-nitro/woocommerce/single-product/add-to-cart/grouped.php version 4.0.0 is out of date. The core version is 7.0.1 wr-nitro/woocommerce/single-product/add-to-cart/simple.php version 3.4.0 is out of date. The core version is 7.0.1 wr-nitro/woocommerce/single-product/add-to-cart/variable.php version 3.5.5 is out of date. The core version is 6.1.0 wr-nitro/woocommerce/single-product/meta.php wr-nitro/woocommerce/single-product/price.php wr-nitro/woocommerce/single-product/product-image.php wr-nitro/woocommerce/single-product/rating.php wr-nitro/woocommerce/single-product/related.php wr-nitro/woocommerce/single-product/sale-flash.php wr-nitro/woocommerce/single-product/tabs/tabs.php wr-nitro/woocommerce/single-product/title.php wr-nitro/woocommerce/single-product/up-sells.php wr-nitro/woocommerce/single-product-reviews.php wr-nitro/woocommerce/content-product_cat.php version 2.6.1 is out of date. The core version is 4.7.0 Outdated Templates: ❌</img> Learn how to update ### WooCommerce PayPal Payments ### Onboarded: ✔</img> Shop country code: US WooCommerce currency supported: ✔</img> Advanced Card Processing available in country: ✔</img> Pay Later messaging available in country: ✔</img> Webhook status: ✔</img> Vault enabled: ✔</img> Logging enabled: – Reference Transactions: – Used PayPal Checkout plugin: ✔</img> Tracking enabled: ✔</img> ### Admin ### Enabled Features: activity-panels analytics coupons customer-effort-score-tracks import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing multichannel-marketing mobile-app-banner navigation new-product-management-experience onboarding onboarding-tasks remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page Disabled Features: minified-js product-variation-management settings Daily Cron: ✔</img> Next scheduled: 2023-04-26 13:49:10 -05:00 Options: ✔</img> Notes: 134 Onboarding: completed ### Action Scheduler ### Complete: 1,229 Oldest: 2023-03-25 20:01:03 -0500 Newest: 2023-04-25 19:15:38 -0500 Failed: 276 Oldest: 2021-09-21 01:24:45 -0500 Newest: 2023-02-14 19:12:05 -0600 Pending: 4 Oldest: 2023-04-26 12:26:00 -0500 Newest: 2023-04-26 12:26:00 -0500 ### WooCommerce Zapier ### Database Version: ✔</img> 14 Detailed Logging Enabled: No Legacy Mode Disabled: ✔</img> Yes SSL: ✔</img> Yes REST API Authentication Key(s): ✔</img> 6 Task History Record Count: ✔</img> 744 Webhook #5: WooCommerce Zapier - Status: active - Trigger: order.status_changed - Delivery Count: 43 Webhook #3: WooCommerce Zapier - Status: active - Trigger: order.status_changed - Delivery Count: 187 Webhook #2: WooCommerce Zapier - Status: active - Trigger: order.status_changed - Delivery Count: 195 Webhook #1: WooCommerce Zapier - Status: active - Trigger: order.created - Delivery Count: 140 Deleted Webhook Delivery Count: 124 Order Action Count: 55 ### Status report information ### Generated at: 2023-04-25 19:15:45 -05:00 `Hi @zoonars
Thank you for sharing the system report.
The error
ORDER_NOT_APPROVEDis coming from PayPal and could occur when the payment process is not in the correct order.
To learn more about this behavior, I suggest enablingLoggingfrom the Connection tab.
The plugin will then log the activity, which helps us better understand what is happening. The logs also contain aDebug IDwhich helps the PayPal Merchant Technical Support to identify eventual issues on the PayPal side.
Beyond enabling logging, we recommend connecting a PayPal sandbox account and performing test payments to see if you can reproduce the behavior.You can find more detailed information regarding troubleshooting on this page.
Please let us know how this works for you or if you need additional guidance. Thanks!Kind regards,
NiklasI’ll enable logging, and keep an eye out for order fails. Im unable to reproduce the issue on my end.
Hello, my site came across this issue again, and I can share a more detailed log. What is the best way of doing this?
Hello @zoonars
The best way to work with us (when such details are required to be exchanged) is via a private engagement. You can find the details on how to create such an engagement with us via this link.
When you provide us with the new logs, you might also want to share a screenshot of the order notes with us. I will mark this thread as resolved and wait for the private engagement to be opened with us, so we can continue this investigation.
Kind regards,
Joost
The topic ‘[UNPROCESSABLE_ENTITY] Failed Order but Payment went through’ is closed to new replies.