I am using BrainTree payments and First Data on my site. When a customer's card is declined due to insufficient funds and can't pay their recurring monthly subscription how does amember know to suspend the account or deny access? Also is there a way to set it up for 3x attempts before suspension?
Hello, aMember see these errors and revoke access if necessary. Do not worry about it. You can configure option "Re attempt on failure" within payment plugin configuration ie: aMember CP -> Configuration -> Setup/Configuration -> First Data aMember CP -> Configuration -> Setup/Configuration -> Brain Tree Best Regards.
Is there a way I can build a webhook or see in mysql when someones account has been suspended so I can trigger it to suspend on other platforms?
Do you mean when user subscription expired? In this case you can use this hook: PHP: Am_Di::getInstance()->hook->add(Am_Event::SUBSCRIPTION_DELETED, function(Am_Event $e) { /** @var User $user */ $user = $e->getUser(); /** @var Product $product */ $product = $e->getProduct();}); You can put this code to site.php: https://www.amember.com/docs/Site.php_file