• Hi guys,

    Struggling with some weird issue..probably something with timing

    When order is placed, order.created webhook is triggered (“status\”:\”pending\”)
    After payment confirmation is received order.updated webhook is triggered (“status\”:\”processing\”)
    The system which receives api call’s, reacts only on the calls with status processing (this means order is paid)
    Sometimes it happens that both web hooks are triggered while order update to status “processing” was not processed yet (or it was processed but ignored by order.updated webhook because it was already planned for delivery). So both webhooks are sending api call with “status\”:\”pending\”

    This happens on rare occasions like 1 on 30 orders, so it is difficult to reproduce…:(

    I was wondering if there is a way to somehow script a delay on order.updated webhook? Based on webhookID
    Or maybe you have some better ideas how to resolve it.

    I have tried to create multiple order.updated webhooks, but it does not help since they all are triggered/planned at the same moment..:(

    Thanks a lot for your time.

    Below stats of my setup:

    ### WordPress Environment ###

    WordPress address (URL): https://www.lekkerhoning.nl
    Site address (URL): https://www.lekkerhoning.nl
    WC Version: 4.5.1
    REST API Version: ? 4.5.1
    WC Blocks Version: ? 3.1.0
    Action Scheduler Version: ? 3.1.6
    WC Admin Version: ? 1.5.0
    Log Directory Writable: ?
    WP Version: 5.5.1
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: ?
    WP Cron: ?
    Language: nl_NL
    External object cache: ?

    ### Server Environment ###

    Server Info: Apache/2.4.25 (Debian)
    PHP Version: 7.4.9
    PHP Post Max Size: 256 MB
    PHP Time Limit: 180
    PHP Max Input Vars: 2500
    cURL Version: 7.52.1
    OpenSSL/1.0.2u

    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.3.24-MariaDB-1:10.3.24+maria~stretch-log
    Max Upload Size: 256 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?

    ### Database ###

    WC Database Version: 4.5.1
    WC Database Prefix: wp_
    Totale databasegrootte: 512.33MB
    Database datagrootte: 295.56MB
    Database index grootte: 216.77MB
    wp_woocommerce_sessions: Data: 4.02MB + Index: 0.06MB + 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: 5.52MB + Index: 2.52MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Data: 36.58MB + Index: 42.13MB + 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: 8.02MB + Index: 10.86MB + 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: 10.52MB + Index: 9.03MB + Engine InnoDB
    wp_ac_abandoned_cart_history_lite: Data: 1.27MB + Index: 0.00MB + Engine InnoDB
    wp_ac_email_templates_lite: Data: 0.03MB + Index: 0.00MB + Engine InnoDB
    wp_ac_guest_abandoned_cart_history_lite: Data: 0.11MB + Index: 0.00MB + Engine InnoDB
    wp_ac_sent_history_lite: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_adtribes_my_conversions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_aelia_dismissed_messages: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_aelia_exchange_rates_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_bv_fw_requests: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_bv_ip_store: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_bv_lp_requests: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_commentmeta: Data: 0.44MB + Index: 0.53MB + Engine InnoDB
    wp_comments: Data: 24.56MB + Index: 20.09MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mollie_pending_payment: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_newsletter: Data: 3.52MB + Index: 0.70MB + Engine InnoDB
    wp_newsletter_emails: Data: 0.41MB + Index: 0.00MB + Engine InnoDB
    wp_newsletter_sent: Data: 2.52MB + Index: 3.03MB + Engine InnoDB
    wp_newsletter_stats: Data: 1.52MB + Index: 0.66MB + Engine InnoDB
    wp_newsletter_user_logs: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
    wp_options: Data: 4.30MB + Index: 0.36MB + Engine InnoDB
    wp_postmeta: Data: 107.64MB + Index: 90.30MB + Engine InnoDB
    wp_posts: Data: 14.39MB + Index: 4.73MB + Engine InnoDB
    wp_queue: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_termmeta: Data: 0.08MB + Index: 0.03MB + Engine InnoDB
    wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_term_relationships: Data: 0.11MB + Index: 0.08MB + Engine InnoDB
    wp_term_taxonomy: Data: 0.08MB + Index: 0.03MB + Engine InnoDB
    wp_tinvwl_analytics: Data: 0.08MB + Index: 0.02MB + Engine InnoDB
    wp_tinvwl_items: Data: 0.08MB + Index: 0.00MB + Engine InnoDB
    wp_tinvwl_lists: Data: 0.17MB + Index: 0.00MB + Engine InnoDB
    wp_usermeta: Data: 48.58MB + Index: 15.06MB + Engine InnoDB
    wp_users: Data: 0.48MB + Index: 0.42MB + Engine InnoDB
    wp_wcpdf_invoice_number: Data: 0.50MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_customer_lookup: Data: 1.52MB + Index: 1.75MB + Engine InnoDB
    wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_coupon_lookup: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_product_lookup: Data: 4.52MB + Index: 6.06MB + Engine InnoDB
    wp_wc_order_stats: Data: 2.52MB + Index: 2.22MB + Engine InnoDB
    wp_wc_order_tax_lookup: Data: 1.52MB + Index: 2.00MB + Engine InnoDB
    wp_wc_product_meta_lookup: Data: 0.11MB + Index: 0.13MB + Engine InnoDB
    wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woof_query_cache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_yoast_indexable: Data: 4.52MB + Index: 2.69MB + Engine InnoDB
    wp_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_yoast_seo_links: Data: 1.52MB + Index: 0.59MB + Engine InnoDB
    wp_yoast_seo_meta: Data: 1.52MB + Index: 0.00MB + Engine InnoDB

    ### Post Type Counts ###

    acf-field: 1
    acf-field-group: 1
    attachment: 783
    custom_css: 1
    elementor_library: 1
    gift_card: 63
    jetpack_migration: 2
    jetpack-portfolio: 1
    mc4wp-form: 2
    ml-slide: 15
    ml-slider: 3
    nav_menu_item: 92
    oembed_cache: 1
    page: 18
    post: 23
    postman_sent_mail: 250
    product: 287
    product_variation: 389
    revision: 62
    sg_optimizer_job: 6
    shop_coupon: 12
    shop_order: 14715
    shop_order_refund: 184
    testimonials-widget: 2
    yith_wcps_type: 1
    yith-wcbm-badge: 4
    ywar_reviews: 1
    ywcm_message: 2

    ### Security ###

    Secure connection (HTTPS): ?
    Hide errors from visitors: ?

    ### Active Plugins (50) ###

    Advanced Custom Fields: door Elliot Condon – 5.9.1
    Autoptimize: door Frank Goossens (futtta) – 2.7.7
    Breeze: door Cloudways – 1.1.7
    Classic Editor: door WordPress Contributors – 1.6
    Cookie Notice: door dFactory – 1.3.2
    Customer Reviews for WooCommerce: door Customer Reviews – 3.124 – Ge?nstalleerde versie niet getest met actieve versie van WooCommerce 4.5.1
    Google Customer Reviews for WooCommerce: door eCreations – 2.6.12 – Ge?nstalleerde versie niet getest met actieve versie van WooCommerce 4.5.1
    Elastic Email Sender: door Elastic Email Inc. – 1.1.29
    Giftable for WooCommerce: door Decom – 1.0.5 – Ge?nstalleerde versie niet getest met actieve versie van WooCommerce 4.5.1
    Max Mega Menu – Pro Addon: door megamenu.com – 2.1.2
    Max Mega Menu: door megamenu.com – 2.9.0.2
    Mollie-betalingen voor WooCommerce: door Mollie – 5.8.3
    Newsletter – Google Analytics: door The Newsletter Team – 1.1.2
    Newsletter – Extended Composer Blocks: door The Newsletter Team – 1.2.7
    Newsletter – Bounce: door The Newsletter Team – 1.1.1
    Newsletter – Addons Manager: door The Newsletter Team – 1.1.3
    Newsletter – Reports and Retargeting: door The Newsletter Team – 4.3.7
    Newsletter – WooCommerce: door The Newsletter Team – 1.5.1 – Ge?nstalleerde versie niet getest met actieve versie van WooCommerce 4.5.1
    Nieuwsbrief: door Stefano Lissa & Het Newsletter Team – 6.8.8
    Redis Object Cache: door Till Krüss – 2.0.13
    WooCommerce Side Cart: door XootiX – 2.1 – Ge?nstalleerde versie niet getest met actieve versie van WooCommerce 4.5.1
    Page Builder by SiteOrigin: door SiteOrigin – 2.11.2
    SiteOrigin Widgets Bundle: door SiteOrigin – 1.17.7
    Storefront Blog Customiser: door WooCommerce – 1.3.0
    TI WooCommerce Wishlist: door TemplateInvaders – 1.21.6 – Ge?nstalleerde versie niet getest met actieve versie van WooCommerce 4.5.1
    TinyMCE Advanced: door Andrew Ozz – 5.5.0
    UpdraftPlus – Backup/Restore: door UpdraftPlus.Com
    DavidAnderson – 1.16.29

    WooCommerce NL Postcode Checker: door Ewout Fernhout – 2.5.1 – Ge?nstalleerde versie niet getest met actieve versie van WooCommerce 4.5.1
    WC Variations Radio Buttons: door 8manos – 2.0.2 – Ge?nstalleerde versie niet getest met actieve versie van WooCommerce 4.5.1
    WooCommerce Weight Based Shipping: door weightbasedshipping.com – 5.3.6
    Checkout Field Editor for WooCommerce: door ThemeHigh – 1.4.3 – Ge?nstalleerde versie niet getest met actieve versie van WooCommerce 4.5.1
    Order Weight for WooCommerce: door We Up North – 0.3.5 – Ge?nstalleerde versie niet getest met actieve versie van WooCommerce 4.5.1
    Product Feed PRO for WooCommerce: door AdTribes.io – 8.7.2
    Verlaten Winkelwagen Lite voor WooCommerce: door Tyche software – 5.8.1 – Ge?nstalleerde versie niet getest met actieve versie van WooCommerce 4.5.1
    WooCommerce AJAX Cart: door Moises Heberle – 1.3.14 – Ge?nstalleerde versie niet getest met actieve versie van WooCommerce 4.5.1
    WooCommerce Bulk Discount: door Rene Puchinger – 2.4.5 – Ge?nstalleerde versie niet getest met actieve versie van WooCommerce 4.5.1
    WooCommerce Cost of Goods: door SkyVerge – 2.9.3 (update naar versie 2.9.8 is beschikbaar) – Ge?nstalleerde versie niet getest met actieve versie van WooCommerce 4.5.1
    WooCommerce EU BTW Assistent: door Aelia – 1.14.7.200904
    WooCommerce Google Analytics Integration: door WooCommerce – 1.4.23 – Ge?nstalleerde versie niet getest met actieve versie van WooCommerce 4.5.1
    WooCommerce PDF Invoices & Packing Slips: door Ewout Fernhout – 2.6.1
    WooCommerce Quantity Increment: door Automattic
    WooThemes – 1.1.0 – Ge?nstalleerde versie niet getest met actieve versie van WooCommerce 4.5.1

    WooCommerce Sequential Order Numbers: door SkyVerge – 1.9.5 – Ge?nstalleerde versie niet getest met actieve versie van WooCommerce 4.5.1
    WooCommerce Social Login: door SkyVerge – 2.8.0 (update naar versie 2.10.0 is beschikbaar) – Ge?nstalleerde versie niet getest met actieve versie van WooCommerce 4.5.1
    WooCommerce: door Automattic – 4.5.1
    Yoast SEO: door Team Yoast – 14.9 – Ge?nstalleerde versie niet getest met actieve versie van WooCommerce 4.5.1
    WP Crontrol: door John Blackbourn & crontributors – 1.8.5
    WPFront Scroll Top: door Syam Mohan – 2.0.2
    WP Overnight Sidekick: door Jeremiah Prummer
    Ewout Fernhout
    Michael Kluver – 2.2.2

    YITH Infinite Scrolling: door YITH – 1.3.0
    YITH WooCommerce Cart Messages: door YITH – 1.5.4 – Ge?nstalleerde versie niet getest met actieve versie van WooCommerce 4.5.1

    ### Inactive Plugins (2) ###

    Better Search Replace: door Delicious Brains – 1.3.3
    Tawk.to Live Chat: door Tawkto – 0.4.2

    ### Dropin Plugins (2) ###

    advanced-cache.php: advanced-cache.php
    object-cache.php: Redis Object Cache Drop-In

    ### Settings ###

    API Enabled: ?
    Force SSL: –
    Currency: EUR (€)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    gift-card (gift-card)
    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: ?

    ### WC Pages ###

    Winkelbasis: #435 – /winkel/
    Winkelmand: #5 – /winkelmand/
    Afrekenen: #6 – /afrekenen/
    Mijn account: #7 – /mijn-account/
    Algemene voorwaarden: ? Pagina niet ingesteld

    ### Theme ###

    Name: Storefront Child Theme
    Version: (update naar versie 0 is beschikbaar)
    Author URL:
    Child Theme: ?
    Parent Theme Name: Storefront
    Parent Theme Version: 2.5.8 – 2.7.0 is beschikbaar
    Parent Theme Author URL: https://woocommerce.com/
    WooCommerce Support: ?

    ### Templates ###

    Overrides: storefront-child/woocommerce/checkout/thankyou.php versie 3.2.0 is verouderd. De hoofdversie is 3.7.0
    storefront-child/woocommerce/emails/customer-completed-order.php versie 3.5.0 is verouderd. De hoofdversie is 3.7.0
    storefront-child/woocommerce/emails/customer-processing-order.php versie 3.5.0 is verouderd. De hoofdversie is 3.7.0
    storefront-child/woocommerce/emails/email-footer.php versie 2.3.0 is verouderd. De hoofdversie is 3.7.0

    Outdated Templates: ?

    Leer hoe te updaten

    ### Social Login ###

    Facebook: ? Available
    Twitter: Disabled
    Google: ? Available
    Amazon: Disabled
    Linkedin: Disabled
    Paypal: Disabled
    Instagram: Disabled
    Disqus: Disabled
    Yahoo: Disabled
    Vkontakte: Disabled

    ### TI WooCommerce Wishlist Templates ###

    Overrides: –

    ### Action Scheduler ###

    Afgerond: 21.828
    Oldest: 2020-08-31 22:03:31 +0200
    Newest: 2020-09-13 16:29:56 +0200

    In afwachting: 5
    Oldest: 2020-09-13 16:44:56 +0200
    Newest: 2020-09-18 10:10:17 +0200

    `

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter Nikita

    (@delfniki)

    Guys still need some help with this issue.

    Is there a way to add some script to functions.php to add a delay to order.updated webhook? Based on webhookID

    Thanks in advance!

Viewing 1 replies (of 1 total)
  • The topic ‘Create delay for webhook’ is closed to new replies.