Define | Add delay to webhook



Just a heads-up: This document is a friendly guide intended for developers and designers. A bit of PHP know-how is needed to get the most out of it.

Please remember, while we love to be helpful, our support policy doesn’t extend to customizations.

Think of any sample code we provide as a starting point or inspiration for your projects!


The “ag_webhook_delay” setting in the AG plugin allows you to set a delay for webhook notifications from First Data, which update your website with order statuses. This setting is particularly useful if your system is recording multiple notes for a single order, suggesting that updates are being processed too quickly. By adjusting the delay, you provide your system with sufficient time to handle updates one at a time, preventing server overload and ensuring accurate order tracking.

For a hassle-free experience, we suggest using a third-party plugin like Code Snippets to add this code. It’s a smoother alternative to diving into your theme’s function.php file.

Was this helpful?

First Data Connect

Don't already have the plugin? Get access now.

Still need help?

Our team are on hand to provide fast, helpful and professional support.

Support request

Front End Demo

Test drive our plugin on the demo site.

View Demo


Ask our bot about our products.

Welcome to our AG Bot, powered by OpenAI and trained on our documents and product pages. By continuing to use this service, please keep in mind:

Your continued use indicates acceptance of these terms. We hope you find our AI Chatbot useful!

Hello! I am AG Bot, how can I help you?