Sunday, September 23, 2018

Field 'Use Card Security Code for Credit Card Transactions' returns null when retrieved via SuiteScript

  1. Navigate to Setup > Accounting > Accounting Preferences. On the Items/Transactions tab, under Payment Processing, enable Use Card Security Code for Credit Card Transactions.
  2. Help Guide states that this is available via SuiteScript
       Preference UI Label: Use Credit Card Security Code for Credit Card Transactions
       Preference Internal ID: ccsecuritycode
  3. Retrieve value using the following code
 function getCCSecurityCode()
   {
     var recId = nlapiGetRecordId();   
     var soRec = nlapiLoadRecord('salesorder', recId);
     var soRec = soRec.getFieldValue('ccsecuritycode'); // returns null
   }
 

4. The field is not available using Saved Search on Transactions > Sales Orders

5. Using Formula (text): {ccsecuritycode} in the Results tab of the Saved Search results to 'ERROR: Field Not Found'
 

Use Card Security Code for Credit Card Transactions is a non-stored field and cannot be saved in NetSuite. This is why the field is not available in Saved Search. The availability of the field in SuiteScript depends on how PCI Compliance handling of this field and should be confirmed with the Security Team.

No comments:

Post a Comment