Hey All, Is there any way to auto-populate the cre...
# suitecommerce
d
Hey All, Is there any way to auto-populate the credit card type (VIS/Master etc..) in SCA webstore 2020.2 version based on the card number entered?
s
We have the regexes in the application I believe, so you should be able to write an extension that automatically evaluates as the user types and switches them
w
I don't think you need an extension for this. Do you have this in your configuration?
🙌 1
d
@wes_w I have this it is a bit different from yours could that be the issue?
m
We also have the same config and image selection after CC input works perfectly.
d
@Mohammad Sharaf Ali is there any other place we have to configure this? apart from config record? and what is the SCA version you are using?
m
This works on all the version 19.2, 20.1, and 20.2. The dropdown only appears instead of images when input card no. is not recognized and in that case its asks for a manual selection from the user.
👍 1
🙌 1
d
makes sense. any ideas on why this is not working for us?
m
In your case, does it show CC images or dropdown always irrespective of any input?
w
@Durgasree Your regexes look fine, even though they are a bit different, they work the same as ours. I don't know why they are not working. NetSuite's SuiteCommerce for Success team set this up for us.
👍 1
d
I see the images first and when I enter the card number changes to drop down
m
Can you check with the dummy card numbers from this website and see if the images are being selected or not?
d
Entered few card numbers from the list. The images changed to dropdown after entering
s
OK I checked and card auto select does work but it requires configuration changes if it's showing the dropdown
🙌 1
👍 1
Documentation isn't great on this but this is the part that talks about it: http://system.netsuite.com/app/help/helpcenter.nl?fid=bridgehead_4666998357.html&whence=
🙌 1
The most likely cause is that your KEY field for the cards is not correct
For example, my site was configured to match Visa cards with the key 5,5,1555641112 -- but if I duplicate the row (including the regex) and change it to 5,1,1555641112 then it works
The middle number '1' is typically associated with credit cards
👍 1
h
I'm a bit late to the party, but if you go to your developer console on SCA and type in:
SC.CONFIGURATION.siteSettings.paymentmethods
you'll see a list of the payment methods setup for your site. The
key
attribute for the Visa/Master Card/AMEX/etc payment methods should match the key in your Configuration under the Payment Methods list.
👍 1
🙌 1
d
Changing the key worked. Finally the issue is fixed👏. Thank you very much for the inputs @Steve Goldberg @Mohammad Sharaf Ali @Harley @wes_w 🙂
🙌 1