Jump to content
souzadavi

How to add new credit cards brand?

Recommended Posts

In this new version I cant add new type of brands. Before 7.8 i did a Hooks that work fine. There is anyway to add new credit card brands in WHMCS 7.8?

My hook that was working before 7.8:

add_hook('ClientAreaPageCart', 1, function($vars) {
    
    $array = array('Visa', 'Master', 'Amex', 'Elo', 'Aura', 'JCB', 'Diners','Discover','Hipercard', 'Elo Débito');
	return  array("acceptedcctypes" => $array);
});

 

Thanks

Share this post


Link to post
Share on other sites

I'm  trying to add on:

/whmcs/assets/js/jquery.payment.js

    {
      type: 'elo',
      patterns: [4011|438935|45(1416|76)|50(4175|6699|67|90[4-7])|63(6297|6368)],
      format: defaultFormat,
      length: [12, 13, 14, 15, 16, 17, 18, 19],
      cvcLength: [3],
      luhn: true
    },

 

But still not working, there is another place to add the brands type??

thanks

Captura de tela de 2019-09-11 17-49-14.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated