Discussions
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Join us
Use the credit card on file for SO
Hello forum, we are trying to create the SO which will be paid by credit card chosen out of all the credit cards on file for specific customer.
To get list of credit cards on file we are loading customer record:
nlapiLoadRecord("customer", 281);
But in customer object the array we are getting for credit cards for some reason doesn't show their internalIDs:
--------------------------
"creditcards": [
{
"cardstate": {
"name": "Expired",
"internalid": "EXPIRED"
},
"ccdefault": false,
"ccexpiredate": "10/2009",
"ccnumber": "************8527",
"paymentmethod": {
"name": "Master Card",
"internalid": "4"
}
},
{
"cardstate": {
"name": "Unknown",
"internalid": "UNKNOWN"
},
"ccdefault": false,
"ccexpiredate": "11/2016",
"ccnumber": "************2300",
"paymentmethod": {
"name": "Master Card",
"internalid": "4"
}
},
{
"cardstate": {
"name": "Unknown",
"internalid": "UNKNOWN"
},
"ccdefault": true,
"ccexpiredate": "01/2016",