Page 1 of 1

Shopping Carts?

Posted: Mon Oct 04, 2010 1:06 pm
by mstoffer
Is it possible to build a shopping cart that will only accept American Express cards? We have a company that does a lot of business online, but we don't want to accept Visa or Mastercard anymore and was hoping to build a shopping cart that would only accept AMEX if that is even possible. Does anyone know the answer to this?

Thank You,
Michael

Re: Shopping Carts?

Posted: Mon Oct 04, 2010 1:17 pm
by John Cartwright
The world is your oister.

But seriously, it all depends on several factors. Is your credit card processor hosting the payment page or are you using an internal API.

If you have the user entering in their details on your website (and using an internal API to process payments), you could use a simple javascript function (backed up by PHP validation) to deter other credit cards being used.

Of course the best option would be to speak to your CC processor and ask them to disable non AMEX cards -- or find one that can.

Code: Select all

     function isAmex( cc )
     {
          return ( (cc.length == 15) && (cc.substring(0,2) == 34)
                               || (cc.substring(0,2) == 37) );
     }