how to remove American Express from payment options

Discussion in 'aMember Pro v.3' started by rougemarshal, Jan 9, 2012.

  1. rougemarshal

    rougemarshal New Member

    Joined:
    Mar 23, 2009
    Messages:
    13
    I am using paypal and wish to remove the option for the client to select american express (due to the recent policy change) from this list of accepted payment types. Can someone point me to the script/file where I would edit this?

    thanks so much!
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    What plugin do you use paypal_r or paypal_pro? What aMember version you have exactly ?
  3. rougemarshal

    rougemarshal New Member

    Joined:
    Mar 23, 2009
    Messages:
    13
    paypal NVP in amember v3.2.3pro (looking to upgrade now to 4) using paypal website payments pro

    thanks!!
  4. rougemarshal

    rougemarshal New Member

    Joined:
    Mar 23, 2009
    Messages:
    13
    thanks for taking the time to look at this and/or provide input
  5. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    ok. Edit /amember/plugins/payment/paypal_nvp/paypal_nvp.inc.php and remove amex from this array :
    'type_options' => array('Visa' => 'Visa',
    'MasterCard' => 'MasterCard',
    'Discover' => 'Discover',
    'Amex' => 'American Express'),
  6. rougemarshal

    rougemarshal New Member

    Joined:
    Mar 23, 2009
    Messages:
    13
    thanks so much Alexander! I'm going to do that if I can't get past step 3 of the setup for installation of V4 on my replica instance on AWS. Getting the following error and not sure how to proceed:

    • Can't connect to local MySQL server through socket. Try to use 127.0.0.1 for MySQL Host setting. If this will not help contact hosting support and ask to provide correct MySQL Host
    • MySQL Error: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) at /opt/bitnami/apps/moodle/htdocs/amember/library/Am/Setup.php line 103(2002) in query: new PDO

Share This Page