Jump to content

How to add new credit cards brand?


souzadavi

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

Link to comment
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

Link to comment
Share on other sites

  • 7 months later...
  • 3 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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