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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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