This filter allows you to add your own custom order statuses that the plugin should treat as “paid”.
By default, orders with the following statuses are considered paid, and the webhook won’t trigger or re-payment attempt:
If your store uses additional custom statuses (for example awaiting-shipment or partially-refunded), you can include them here, so the plugin recognises them too.
This is especially useful if you have a workflow where orders move through custom post-payment states.
Add the following snippet to your site (for example, in your child theme’s functions.php file or a custom plugin)
/**
* Add custom order statuses that should be treated as "paid" by the plugin.
*
* The plugin checks these statuses before updating orders — if the order
* already has one of them, it skips the updating.
*
* ----------------------------------------------------------
* Default statuses: processing, completed, on-hold
*
* Example: add one or more of your own custom statuses below.
*/
add_filter( 'ag_paid_order_statuses', 'ag_add_custom_paid_statuses' );
function ag_add_custom_paid_statuses( $statuses ) {
// Add your custom status slugs here (no "wc-" prefix)
$custom_statuses = array(
'awaiting-shipment',
'partially-refunded',
);
// Merge and return
return array_merge( $statuses, $custom_statuses );
}In the example above, we:
Now, when an order has one of your custom statuses, the plugin will treat it as paid and skip any further redirect or payment actions
Was this helpful?

Our team are on hand to provide fast, helpful and professional support.
Start exploring our fully functional demo site today.
Gain exclusive admin access to see what's possible.