Title: Failed Orders
Last modified: January 31, 2017

---

# Failed Orders

 *  Resolved [grantambrose](https://wordpress.org/support/users/crammy90/)
 * (@crammy90)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/failed-orders/)
 * Hey!
 * If someone goes through checkout and their card is declined by their bank, they’ll
   get the Failed status, and this is passed to Active Campaign as a tag (works 
   well).
 * If they continue to try payment and get declined 3 times, does this add the failed
   tag 3 times, or leave it from the first time?
 * I only ask as I want to start an automation if this tag of FAILED is present 
   and email the customer, but I don’t want it to email them 3 times for each time
   they try and press the button to pay

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [mtreherne](https://wordpress.org/support/users/mtreherne/)
 * (@mtreherne)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/failed-orders/#post-8734424)
 * I don’t think it should trigger multiple times. The code will only remove a tag
   with a failed status if the new status is different. So if the old status of 
   the order was ‘Failed’ and the new status is ‘Failed’ then the tag will not be
   deleted and recreated. It will just be synchronised – which I am pretty sure 
   is not treated as a tag being added by ActiveCampaign.
 * The other question is whether WooCommerce changes the status during the subsequent
   attempt. I don’t think so but I don’t have the test data to confirm i.e. does
   the status go from ‘Failed’ to ‘Pending’ to ‘Failed’ (I don’t think WC does this
   but I’m not certain in all situations).
 * You could set the automation to only be triggered once to be on the safe side.
 * If you do see the event (multiple declined payment failures) again and it does
   not behave as I expected then please let me know.
 * Regards,
    Matthew
 *  Thread Starter [grantambrose](https://wordpress.org/support/users/crammy90/)
 * (@crammy90)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/failed-orders/#post-8741185)
 * ok thanks mate!
 * Also, any chance we can link a new order to a specific form (ID) in Active Campaign?
 * THank way, on purchase, I can trigger the optin for a specific form so they can
   click the button and actually opt in to the list?
 *  Plugin Author [mtreherne](https://wordpress.org/support/users/mtreherne/)
 * (@mtreherne)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/failed-orders/#post-8742653)
 * I’ll make a note to look at that when I next do some enhancements. I don’t see
   why not. It is also related to another (outstanding) request for the ability 
   to have a sign up (optin) option to a newsletter at the checkout.
 * As a workaround of sorts, an automation to check for specific product tags and
   subscribe a contact to another list might help.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Failed Orders’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wc-ac-hook.svg)
 * [WC-AC Hook](https://wordpress.org/plugins/wc-ac-hook/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wc-ac-hook/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wc-ac-hook/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-ac-hook/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-ac-hook/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-ac-hook/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [mtreherne](https://wordpress.org/support/users/mtreherne/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/failed-orders/#post-8742653)
 * Status: resolved