Post by apelectric » Thu Dec 29, 2016 3:22 am

Does anyone know of an extension that will guess the credit card type? It validates credit cards, guesses the type, highlights the card-type icon automatically and has callbacks. Something like what is seen here: https://codecanyon.net/item/cardcheck-c ... er/1053565

Newbie

Posts

Joined
Thu Dec 29, 2016 3:15 am

Post by labeshops » Sat Dec 31, 2016 12:11 am

Not off hand but I would think it would be fairly easy to build in for a coder. Just go off the first digit on the card number: 4 is visa, 5 is mastercard, 6 is discover and 3 in amex.

Running Opencart v3.0.3.2 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by Johnathan » Sat Dec 31, 2016 11:45 pm

There are javascript libraries that do this, though labeshops is right that it's pretty to code a simple one yourself. If you want to find one, search Google for "javascript check credit card type".

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am

Who is online

Users browsing this forum: No registered users and 44 guests