Anyone using "Credit Card Expiration Notice" email feature?

Discussion in 'Customization & add-ons' started by celina, Jun 1, 2010.

  1. celina

    celina Member

    Joined:
    Sep 9, 2008
    Messages:
    86
    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.
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    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*2410 ); // 10 days later
    change 10 in above code to whatever you need.

Share This Page