Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
Unable to set CC Expiration Date using SS2.0
I'm currently trying to set a customer's credit card via SS2.0 and getting stuck:
Looping through an object to set the fields with their associated field values yields:
{ "type": "error.SuiteScriptError", "name": "USER_ERROR", "message": "Please enter a valid expiration date", "stack": [ "anonymous(N/recordService)", "doPost(Script.js:207)" ], "cause": { "type": "internal error", "code": "USER_ERROR", "details": "Please enter a valid expiration date", "userEvent": null, "stackTrace": [ "anonymous(N/recordService)", "doPost(Script.js:207)" ] }, "id": "" }and the credit card object looks like:
"creditcards": { "0": { "ccname": "Test CC Name", "ccnumber": "", "ccexpiredate": "6/2020", "paymentmethod": 6 } },or
"creditcards": { "0": { "ccname": "Test CC Name", "ccnumber": "", "expmonth": "06", "expyear": "2020", "paymentmethod": 6 } },nor
"creditcards": { "0": { "ccname": "Test CC Name", "ccnumber": "", "expmonth": "6", "expyear": "2020", "paymentmethod": 6 } }, 0