Hide and not require Security Code field in PayPal Pro?

Discussion in 'aMember Pro v.4' started by mikelinen, Feb 21, 2012.

  1. mikelinen

    mikelinen New Member

    Joined:
    Jun 22, 2011
    Messages:
    22
    Is there a way to hide and not require the Security Code in PayPal Pro? Per my fraud control settings at PayPal, I don't need it (and if a wrong value is input PayPal ignores it anyway). Reason to remove the field: why require it if unused? Many sites don't rquire it. And it is leading to corner-case problems as described here:
    http://www.amember.com/forum/thread...arning-user-gets-billed-but-no-product.14338/

    Thanks
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Edit /amember/application/cc/plugins/paypal-pro.php and change this:
    PHP:
        public function getFormOptions()
        {
            
    $ret parent::getFormOptions();
            
    $ret[] = self::CC_TYPE_OPTIONS;
            return 
    $ret;
        }
    to

    PHP:
        public function getFormOptions()
        {
            
    $ret = array(self::CC_PHONEself::CC_TYPE_OPTIONS);
            return 
    $ret;
        }
  3. mikelinen

    mikelinen New Member

    Joined:
    Jun 22, 2011
    Messages:
    22
    That worked perfectly. Thanks.

Share This Page