-
Notifications
You must be signed in to change notification settings - Fork 34
Description
A customer writes...
I set 'Max Payment Failures (for Authorize.Net Integration Only)' to 1 and expected s2Member to cancel the subscription on first failed recurring payment. It does not apparently: code snippet from authnet-notify-in.inc.php
if($GLOBALS['WS_PLUGIN__']['s2member']['o']['pro_authnet_max_payment_failures']
&& ($current_payment_failures = get_user_option('s2member_authnet_payment_failures', $user_id)) >= $GLOBALS['WS_PLUGIN__']['s2member']['o']['pro_authnet_max_payment_failures']
)$current_payment_failures will be 0 on first failed payment - the condition above will be false and you don't issue EOT.
I would change my setting from 1 to 0, but the help text says: "If you don't want s2Member to monitor failed payments you can set this to 0".
So what to do?