Discussions
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
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",