Woocommerce order status not updating to complete after successful ITN
-
Lately I am getting an issue with woocommerce order status not updating to “complete” after a successful ITN. It will update to “complete” about an hour after a successful ITN and sometimes two days and sometimes not at all. This also doesn’t happen the whole time, only with some of the orders. This is creating an issue with a courier integration, as they get data that the order is not paid. Any help will be appreciated.
-
Hi @karendejong
Thanks for reaching out!
I understand that you’re experiencing an issue with WooCommerce order status not updating to
Completed
immediately after a successful ITN. Based on your description, it seems that there might be a delay in the communication between your payment gateway and your WooCommerce store, or there could be a conflict with another plugin or theme that is causing this issue.As a first step, can you please share with us what payment gateway was used for these orders that use ITN?
Furthermore, please provide us with a screenshot of the Order Notes for any of these orders so that we could check this further.
If you don’t already have a screenshot service installed, you can try https://snipboard.io. You can share the direct link to the image as a response to this topic.
Additionally, I’d like to understand your site properly. Please share your System Status Report that you can find via
WooCommerce > Status
. SelectGet system report
and thenCopy for support
. Once you’ve done that, you can paste it into your reply here.If you could also provide the fatal error logs (if any) under
WooCommerce > Status > Logs
.You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.
Thanks!
Hi @xue28
Thank you for your reply.
I am using PayFast as the payment gateway
Link to order notes: https://snipboard.io/9ITvDG.jpg
Woocommerce status:
### WordPress Environment ###
WordPress address (URL): https://glare.co.za
Site address (URL): https://glare.co.za
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: 6.2
WP Multisite: –
WP Memory Limit: 256 MB
WP Debug Mode: –
WP Cron: ?</img>
Language: en_ZA
External object cache: –
### Server Environment ###
Server Info: Apache
PHP Version: 8.0.28
PHP Post Max Size: 64 MB
PHP Time Limit: 300
PHP Max Input Vars: 1000
cURL Version: 8.0.1
OpenSSL/1.1.1t
SUHOSIN Installed: –
MySQL Version: 10.3.38-MariaDB
Max Upload Size: 64 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: 305.71MB
Database Data Size: 275.33MB
Database Index Size: 30.38MB
wp_woocommerce_sessions: Data: 0.13MB + 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.17MB + Index: 0.08MB + Engine InnoDB
wp_woocommerce_order_itemmeta: Data: 1.52MB + Index: 3.03MB + Engine InnoDB
wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + 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: 3.72MB + Index: 1.66MB + Engine MyISAM
wp_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_actionscheduler_logs: Data: 2.80MB + Index: 1.87MB + Engine MyISAM
wp_barcode_scanner_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_barcode_scanner_logs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_barcode_scanner_posts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_barcode_scanner_posts_columns: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_barcode_scanner_settings: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_barcode_v3_dimension: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_barcode_v3_fields_matching: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_barcode_v3_label_sheets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_barcode_v3_paper_formats: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_barcode_v3_profiles: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_barcode_v3_templates: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
wp_barcode_v3_template_to_user: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_barcode_v3_user_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_cli_cookie_scan: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_cli_cookie_scan_categories: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_cli_cookie_scan_cookies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_cli_cookie_scan_url: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_cli_scripts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_comments: Data: 6.50MB + Index: 8.09MB + Engine InnoDB
wp_email_log: Data: 51.21MB + Index: 0.07MB + Engine MyISAM
wp_gglcptch_whitelist: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_options: Data: 6.09MB + Index: 1.11MB + Engine InnoDB
wp_pimwick_gift_card: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_pimwick_gift_card_activity: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_postmeta: Data: 19.13MB + Index: 10.63MB + Engine InnoDB
wp_posts: Data: 173.03MB + Index: 1.33MB + Engine InnoDB
wp_pos_warehouse: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_termmeta: Data: 0.06MB + Index: 0.06MB + Engine InnoDB
wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_term_relationships: Data: 0.16MB + Index: 0.11MB + Engine InnoDB
wp_term_taxonomy: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
wp_usermeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_wc_admin_notes: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
wp_wc_admin_note_actions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_customer_lookup: Data: 0.10MB + Index: 0.08MB + Engine MyISAM
wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_order_coupon_lookup: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
wp_wc_order_product_lookup: Data: 0.41MB + Index: 0.32MB + Engine MyISAM
wp_wc_order_stats: Data: 0.18MB + Index: 0.13MB + Engine MyISAM
wp_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.03MB + Engine MyISAM
wp_wc_product_download_directories: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_wc_product_meta_lookup: Data: 0.24MB + Index: 0.37MB + Engine MyISAM
wp_wc_rate_limits: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_reserved_stock: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
wp_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wfblockediplog: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wfblocks7: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wfconfig: Data: 2.12MB + Index: 0.01MB + Engine MyISAM
wp_wfcrawlers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wffilechanges: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wffilemods: Data: 3.66MB + Index: 0.44MB + Engine MyISAM
wp_wfhits: Data: 0.17MB + Index: 0.04MB + Engine MyISAM
wp_wfhoover: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wfissues: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
wp_wfknownfilelist: Data: 2.66MB + Index: 0.13MB + Engine MyISAM
wp_wflivetraffichuman: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wflocs: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
wp_wflogins: Data: 0.36MB + Index: 0.08MB + Engine MyISAM
wp_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wfls_role_counts: Data: 0.00MB + Index: 0.00MB + Engine MEMORY
wp_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wfnotifications: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
wp_wfpendingissues: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wfreversecache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wfsnipcache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wfstatus: Data: 0.12MB + Index: 0.06MB + Engine MyISAM
wp_wftrafficrates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wpmailsmtp_tasks_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
### Post Type Counts ###
attachment: 1499
chart: 1
cookielawinfo: 6
custom_css: 2
et_body_layout: 5
et_header_layout: 3
et_pb_layout: 322
et_tb_item: 1
et_template: 8
et_theme_builder: 1
global_product_addon: 2
nav_menu_item: 16
page: 26
phoen_size_chart: 180
pi_fees_rule: 1
post: 1
product: 82
product_variation: 447
pscw-size-chart: 51
revision: 2328
sa_slider: 1
shop_coupon: 187
shop_order: 2532
sp_wp_carousel: 5
tss_data: 26
tss_slider: 2
wp-rest-api-log: 93
wptb-tables: 1
### Security ###
Secure connection (HTTPS): ?</img>
Hide errors from visitors: ?</img>
### Active Plugins (25) ###
Child Theme Wizard: by Jay Versluis – 1.4
CookieYes | GDPR Cookie Consent: by CookieYes – 3.0.8
Email Log: by Sudar – 2.4.8
F4 Total Stock Value for WooCommerce: by FAKTOR VIER – 2.0.5
Facebook for WooCommerce: by Facebook – 3.0.16
Max Mega Menu: by megamenu.com – 3.1.1
Meta pixel for WordPress: by Facebook – 3.0.8
Oliver POS – A WooCommerce Point of Sale (POS): by Oliver POS – 2.4.0.8
Payflex Payment Gateway: by Payflex – 2.4.3
Barcode Label Printing for WooCommerce and others plugins – (basic): by UkrSolution – 3.4.5
Product Size Chart for WooCommerce: by VillaTheme – 1.1.3
Product Size charts for Woocommerce: by phoeniixx – 3.0
Testimonial Slider: by Web-Settler – 3.5.8.5
WC Hide Shipping Methods: by Rynaldo Stoltz – 1.5
Advanced Order Export For WooCommerce: by AlgolPlus – 3.4.0
UpSell for WooCommerce: by nordiccustommade – 1.0.0
WooCommerce Cart Stock Reducer: by James Golovich – 3.90
WooCommerce Checkout Field Editor: by WooCommerce – 1.5.18
WooCommerce Filter Orders by Product: by Kowsar Hossain – 3.2.1
WooCommerce PayFast Gateway: by WooCommerce – 1.5.0 (update to version 1.5.2 is available)
WooCommerce Product Add-ons: by WooCommerce – 3.0.11
WooCommerce: by Automattic – 7.4.0 (update to version 7.6.0 is available)
Wordfence Security: by Wordfence – 7.9.2
WP Mail SMTP: by WPForms – 3.7.0
Social Chat: by QuadLayers – 7.0.3
### Inactive Plugins (0) ###
### Dropin Plugins (1) ###
maintenance.php: maintenance.php
### Settings ###
API Enabled: ?</img>
Force SSL: –
Currency: ZAR (R)
Currency Position: left
Thousand Separator: ,
Decimal Separator: .
Number of Decimals: 2
Taxonomies: Product Types: external (external)
grouped (grouped)
mix and match (mix-and-match)
pw gift card (pw-gift-card)
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: –
Enforce Approved Product Download Directories: –
Order datastore: WC_Order_Data_Store_CPT
### WC Pages ###
Shop base: #6607 – /
Basket: #178 – /basket/
Checkout: #179 – /checkout/
My account: #15406 – /my-account/
Terms and conditions: ?</img> Page not set
### Theme ###
Name: Child Theme Wizard
Version: 1.0
Author URL:
Child Theme: ?</img>
Parent Theme Name: Divi
Parent Theme Version: 4.20.0
Parent Theme Author URL: https://www.elegantthemes.com
WooCommerce Support: ?</img>
### Templates ###
Overrides: Child-Theme-Wizard/woocommerce/emails/admin-new-order.php
Child-Theme-Wizard/woocommerce/emails/customer-completed-order.php
Child-Theme-Wizard/woocommerce/emails/customer-on-hold-order.php version 3.7.0 is out of date. The core version is 7.3.0
Child-Theme-Wizard/woocommerce/emails/customer-processing-order.php
Outdated Templates: ?</img>
Learn how to update
### 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-14 12:44:42 +02:00
Options: ?</img>
Notes: 19
Onboarding: completed
### Action Scheduler ###
Complete: 13,614
Oldest: 2023-03-14 08:31:27 +0200
Newest: 2023-04-14 08:26:13 +0200
Failed: 17
Oldest: 2021-08-03 08:00:11 +0200
Newest: 2023-04-05 09:09:25 +0200
Pending: 2
Oldest: 2023-04-14 12:17:37 +0200
Newest: 2023-04-15 06:13:26 +0200
### Status report information ###
Generated at: 2023-04-14 08:26:36 +02:00
Woocommerce status logs:
2023-04-05T07:48:33+00:00 CRITICAL Allowed memory size of 268435456 bytes exhausted (tried to allocate 49152 bytes) in /home/glarevkw/public_html/wp-includes/class-wpdb.php on line 2397
2023-04-05T07:48:46+00:00 CRITICAL Allowed memory size of 268435456 bytes exhausted (tried to allocate 45056 bytes) in /home/glarevkw/public_html/wp-includes/class-wpdb.php on line 2397
2023-04-05T07:48:57+00:00 CRITICAL Allowed memory size of 268435456 bytes exhausted (tried to allocate 45056 bytes) in /home/glarevkw/public_html/wp-includes/class-wpdb.php on line 2397
2023-04-05T07:49:08+00:00 CRITICAL Allowed memory size of 268435456 bytes exhausted (tried to allocate 45056 bytes) in /home/glarevkw/public_html/wp-includes/class-wpdb.php on line 2397
2023-04-05T07:49:32+00:00 CRITICAL Allowed memory size of 268435456 bytes exhausted (tried to allocate 49152 bytes) in /home/glarevkw/public_html/wp-includes/class-wpdb.php on line 2397
2023-04-05T07:51:04+00:00 CRITICAL Allowed memory size of 268435456 bytes exhausted (tried to allocate 45056 bytes) in /home/glarevkw/public_html/wp-includes/class-wpdb.php on line 2397
2023-04-05T08:01:24+00:00 CRITICAL Allowed memory size of 268435456 bytes exhausted (tried to allocate 49152 bytes) in /home/glarevkw/public_html/wp-includes/class-wpdb.php on line 2397
2023-04-05T08:01:57+00:00 CRITICAL Allowed memory size of 268435456 bytes exhausted (tried to allocate 49152 bytes) in /home/glarevkw/public_html/wp-includes/class-wpdb.php on line 2397
2023-04-05T08:02:11+00:00 CRITICAL Allowed memory size of 268435456 bytes exhausted (tried to allocate 49152 bytes) in /home/glarevkw/public_html/wp-includes/class-wpdb.php on line 2397
2023-04-05T08:04:52+00:00 CRITICAL Allowed memory size of 268435456 bytes exhausted (tried to allocate 49152 bytes) in /home/glarevkw/public_html/wp-includes/class-wpdb.php on line 2397
2023-04-05T09:21:16+00:00 CRITICAL Allowed memory size of 268435456 bytes exhausted (tried to allocate 233472 bytes) in /home/glarevkw/public_html/wp-includes/class-wpdb.php on line 2397
2023-04-05T09:34:04+00:00 CRITICAL Allowed memory size of 268435456 bytes exhausted (tried to allocate 249856 bytes) in /home/glarevkw/public_html/wp-includes/class-wpdb.php on line 2397
2023-04-05T09:34:40+00:00 CRITICAL Allowed memory size of 268435456 bytes exhausted (tried to allocate 233472 bytes) in /home/glarevkw/public_html/wp-includes/class-wpdb.php on line 2397
Thank you for your help!Hi @karendejong ,
Thanks for sharing the requested information!
After checking your System Status report, I am able to see the following:
WC Version: 7.4.0
Your WooCommerce core version is outdated, as a first step could you please update this to the latest available version (7.6.0) to ensure optimal functionality.
WooCommerce PayFast Gateway: by WooCommerce – 1.5.0 (update to version 1.5.2 is available)
The WooCommerce PayFast Gateway plugin is also not updated to its latest available version. Please could you also update this.
2023-04-05T07:48:33+00:00 CRITICAL Allowed memory size of 268435456 bytes exhausted (tried to allocate 49152 bytes) in /home/glarevkw/public_html/wp-includes/class-wpdb.php on line 2397
With regard to your error log, this error indicates your memory limit being exhausted. To resolve this issue you would need to increase your WordPress memory limit from
256M
to512M
.You can reach out to your host for help with this. Also, you can read more about this in our Increasing the WordPress Memory Limit support documentation.
Let us know if this makes any difference!
Hi @beautyofcode
Thank you for your response. I’ll look into these and hopefully this will resolve the issue.Hi @karendejong ,
Happy to help!
Sounds like a plan, we’ll be here if you need any further help ??
Cheers!
Hi @karendejong ,
We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if you need any further help with this.
Cheers!
Hi
I am opening this thread again as I am still struggling with the same issue.
My Woocommerce site is fully updated and can’t see any issues in the logs related to this problem. Could it be the syncing with my payment gateway?Any help will be appreciated.
Thank you!-
This reply was modified 1 year, 9 months ago by
karendejong.
Hi @karendejong ,
I’m sorry to hear that the issue is still present.
Could it be the syncing with my payment gateway?
It is possible. Have you been able to replicate this in test mode?
This also doesn’t happen the whole time, only with some of the orders
Are there any similarities with the orders experiencing this issue, such as products, customer location, coupons perhaps being used, etc?
Also, do you have logging and debugging enabled? If not, can you enable these, and create a test payment?
This will create a log under WooCommerce → Status → Logs to record transaction event information, which is useful for troubleshooting.
You can read more on how to do this here:
https://woocommerce.com/document/payfast-payment-gateway/#section-4
Please share any results with us here so that we can take a closer look.
Cheers!
Hi @beautyofcode
So I looked again at the orders, and it seems like all orders are taking a day or three to change from order processing to order complete after successful ITN payment. There’s even a few that doesn’t update at all. There’s no similarities all orders are different.
I have logging & debugging enabled.
Here are some logs for 6 June:
This shows the integration with the courier company:2023-06-06T00:00:18+00:00 INFO Array ( [Webhook Delivery] => Array ( [Delivery ID] => f8c8f07fc40d23d4cefdf012d4a8a9a2 [Date] => Jun 6, 2023 @ 0:00 [URL] => https://api.bobgo.co.za/webhook/channel?channel=6957e81c-0172-43fb-bf78-87ca038f7893 [Duration] => 0.82634 [Request] => Array ( [Method] => POST [Headers] => Array ( [User-Agent] => WooCommerce/7.7.2 Hookshot (WordPress/6.2.2) [Content-Type] => application/json [X-WC-Webhook-Source] => https://glare.co.za/ [X-WC-Webhook-Topic] => order.updated [X-WC-Webhook-Resource] => order [X-WC-Webhook-Event] => updated [X-WC-Webhook-Signature] => sUjPRYB5xdngQmCpq7sqW23NjqSpamUYRQCS+5YM/60= [X-WC-Webhook-ID] => 39 [X-WC-Webhook-Delivery-ID] => f8c8f07fc40d23d4cefdf012d4a8a9a2 ) ) [Body] => Webhook body is not logged unless WP_DEBUG mode is turned on. This is to avoid the storing of personal data in the logs. [Response] => Array ( [Code] => 200 [Message] => OK [Headers] => WpOrg\Requests\Utility\CaseInsensitiveDictionary Object ( [data:protected] => Array ( [date] => Tue, 06 Jun 2023 00:00:18 GMT [content-type] => application/json [content-length] => 4 [bob-go-request-id] => d7fd6160-863e-474b-8cd5-20d9d87ec89b [apigw-requestid] => GEeLAhguCfMEP4w= ) ) [Body] => Webhook body is not logged unless WP_DEBUG mode is turned on. This is to avoid the storing of personal data in the logs. ) ) )
This shows the intergration with the payment gateway (I've deleted personal info) 06-06-2023 @ 05:45:34 - Payfast ITN call received 06-06-2023 @ 05:45:34 - Get posted data 06-06-2023 @ 05:45:34 - Payfast Data: Array ( [m_payment_id] => 23301 [pf_payment_id] => 126201192 [payment_status] => COMPLETE [item_name] => Glare - 23301 [item_description] => New order from Glare [amount_gross] => 1240.00 [amount_fee] => -47.93 [amount_net] => 1192.07 [custom_str1] => wc_order_FPJoIg9LqhwUU [custom_str2] => WooCommerce/7.7.2; https://glare.co.za [custom_str3] => 23301 [custom_str4] => [custom_str5] => [custom_int1] => [custom_int2] => [custom_int3] => [custom_int4] => [custom_int5] => [name_first] => [name_last] => [email_address] => [merchant_id] => 15049209 [signature] => b4799792eec63ccd53958bd3c70f5f03 ) 06-06-2023 @ 05:45:34 - Verify security signature 06-06-2023 @ 05:45:34 - Signature = valid 06-06-2023 @ 05:45:34 - Verify source IP 06-06-2023 @ 05:45:34 - Valid IPs: Array ( [0] => 34.107.176.71 [1] => 34.120.184.229 [2] => 41.74.179.210 [3] => 41.74.179.194 [4] => 41.74.179.197 [5] => 41.74.179.204 [6] => 41.74.179.212 [7] => 41.74.179.217 [8] => 197.97.145.156 [9] => 41.74.179.203 [10] => 41.74.179.193 [11] => 41.74.179.211 [12] => 144.126.193.139 [13] => 41.74.179.196 [14] => 41.74.179.200 [15] => 41.74.179.195 [16] => 41.74.179.201 [17] => 41.74.179.218 [18] => 197.97.145.145 [19] => 197.97.145.149 [20] => 197.97.145.148 [22] => 197.97.145.150 ) 06-06-2023 @ 05:45:34 - Verify data received 06-06-2023 @ 05:45:34 - Host = https://www.payfast.co.za/eng/query/validate 06-06-2023 @ 05:45:34 - Params = Array ( [m_payment_id] => 23301 [pf_payment_id] => 126201192 [payment_status] => COMPLETE [item_name] => Glare - 23301 [item_description] => New order from Glare [amount_gross] => 1240.00 [amount_fee] => -47.93 [amount_net] => 1192.07 [custom_str1] => wc_order_FPJoIg9LqhwUU [custom_str2] => WooCommerce/7.7.2; https://glare.co.za [custom_str3] => 23301 [custom_str4] => [custom_str5] => [custom_int1] => [custom_int2] => [custom_int3] => [custom_int4] => [custom_int5] => [name_first] => [name_last] => [email_address] => [merchant_id] => 15049209 ) 06-06-2023 @ 05:45:34 - Response: Array ( [VALID] => ) 06-06-2023 @ 05:45:34 - Check data against internal order 06-06-2023 @ 05:45:34 - Order Details: customer id:0 order id: 23301 parent id: 0 status: pending total: 1240.00 currency: ZAR key: wc_order_FPJoIg9LqhwUU 06-06-2023 @ 05:45:34 - Check status and update order 06-06-2023 @ 05:45:34 - - Complete 06-06-2023 @ 05:45:36 - End ITN call
This is integration with accounting software: 2023-06-06T00:00:19+00:00 INFO Array ( [Webhook Delivery] => Array ( [Delivery ID] => e3a9929f66f5e18b14ecdc842b0213cb [Date] => Jun 6, 2023 @ 0:00 [URL] => https://api.storehub.io/api/woocom/9ae34b63-864d-4ab4-83de-273714831c5e [Duration] => 0.88973 [Request] => Array ( [Method] => POST [Headers] => Array ( [User-Agent] => WooCommerce/7.7.2 Hookshot (WordPress/6.2.2) [Content-Type] => application/json [X-WC-Webhook-Source] => https://glare.co.za/ [X-WC-Webhook-Topic] => order.updated [X-WC-Webhook-Resource] => order [X-WC-Webhook-Event] => updated [X-WC-Webhook-Signature] => C4gYsdNtEd3rJHWmpjec72SZa7Zojj6p+0pzhFhfohQ= [X-WC-Webhook-ID] => 37 [X-WC-Webhook-Delivery-ID] => e3a9929f66f5e18b14ecdc842b0213cb ) ) [Body] => Webhook body is not logged unless WP_DEBUG mode is turned on. This is to avoid the storing of personal data in the logs. [Response] => Array ( [Code] => 200 [Message] => OK [Headers] => WpOrg\Requests\Utility\CaseInsensitiveDictionary Object ( [data:protected] => Array ( [server] => Microsoft-IIS/10.0 [x-stackifyid] => V2|bc72aec3-c845-4659-a054-7929cfb98af9|C92019|CD1 [x-powered-by] => ASP.NET [strict-transport-security] => max-age=0 [date] => Tue, 06 Jun 2023 00:00:19 GMT ) ) [Body] => Webhook body is not logged unless WP_DEBUG mode is turned on. This is to avoid the storing of personal data in the logs. ) ) )
Not sure if this can help with the investigation.
Thanks again for your help.Hi there,
Thanks for sharing the logs —?I’m not seeing any issues based on the log.
I see that in your initial request, you’ve mentioned
Woocommerce order status not updating to complete after successful ITN
. Does that mean that you’re expecting the Order status to change to “Completed” after the Payment is completed?I believe there might be a confusion here. When the payment is completed, order comes in with the status of Processing. After this, it is up to the shop managers to ship/fulfill the order and mark it as Completed.
I recommend reviewing what the different Order Statuses are here: https://woocommerce.com/document/managing-orders/
-
This reply was modified 1 year, 9 months ago by
- The topic ‘Woocommerce order status not updating to complete after successful ITN’ is closed to new replies.