Example Custom Payment Processing Suitelet

          /**
*   @NApiVersion 2.x
*   @NScriptType Suitelet
*   @NModuleScope Public
*/
define(["N/plugin"], function (plugin) { function onRequest(context) {
try {
var epPlugin = plugin.loadImplementation({
type: "customscript_17239_ep_api_plugin",//this is same ID which noted
implementation: "default",
});
var epPaymentSelectionForm = epPlugin.getEPForm(); epPaymentSelectionForm.setPaymentType('DD');
epPaymentSelectionForm.setGlobalPayment(false);


epPaymentSelectionForm.AddFilter(true,'custcol_companyname', 'select', 'Custom Subsidiary', '', '', 'Custom Subsidiary', 'subsidiary', '');
epPaymentSelectionForm.AddColumn('text', 'Custom Name', 'custbody_custom_name'); epPaymentSelectionForm.RemoveFilter('custpage_2663_vendor');
            epPaymentSelectionForm.RemoveField('custpage_2663_payment_ref');
            epPaymentSelectionForm.BuildUI(context);
            var form = epPaymentSelectionForm.GetForm();
            context.response.writePage(form);

             } catch (e) {
                    log.error("error in loading",e)
             }
        }
        Return {
             onRequest: onRequest,
        };
   }); 

        

General Notices