Discussions
Error pusing credit card info to NetSuite
When pushing valid credit card info to NetSuite, I am getting an error "Please enter a valid expiration date". I am pushing the expiry date as below:
record.setFieldText('ccexpiredate',nsExp);
Where nsExp is a string with format "MM/YYYY". Some expiry dates seem to work and others don't. If I submit the value in the format "MM/YY" they all work, but go into NetSuite with years like 0019 and 0021. Where do I look to troubleshoot this?
Thanks in advance for any help.