My apologies if this is the wrong place to post this query. I'm using Amember's built-in Credit Card Expiration Notice email feature, which is described in the admin panel this way: "Credit Card Expiration Notice if saved customer credit card expires soon, user will receive the following e-mail message. It works for payment processors like Authorize.Net and PayFlow Pro only." I've tweaked the code so that when these notices are sent, a copy is also sent to the admin, just so I could see when they were being generated. Turns out that rather than notify a customer that his/her crdit card is about to expire, it notifies them about 10 days before their subscription is set to auto-renew that their credit card already is expired. I don't mind that so much, although it isn't what i would have expected from the description above, but I'm wondering where that "10 days" is controlled? I have renewal notices sending at 30 and 15 days before expire, and I suppose 10 days is soon enough, but would prefer these go out earlier than that.
You can find this in /amember/plugins/payment/cc_core/cc_core.inc.php: PHP: function cc_core_check_expire_dates(){ global $db, $config; $dat = date('Y-m-d', time() + 3600*24* 10 ); // 10 days later change 10 in above code to whatever you need.