Abe Rudy
04/01/2021, 6:59 PMtry {
const ccType = getCardType(cardNumber);
const custDep = record.create({
type: record.Type.CUSTOMER_DEPOSIT,
isDynamic: true
});
custDep.setValue('customer', customerId);
custDep.setValue('salesorder', newOrder);
custDep.setValue('paymentmethod', CARD_TYPE_MAP[ccType]);
custDep.setValue('ccnumber', cardNumber);
custDep.setValue('ccexpiredate', '01/2023');
custDep.setValue('ccsecuritycode', securityCode);
custDep.setValue('ccstreet', billStreet);
custDep.setValue('cczipcode', billZip);
var saveDep = custDep.save({
ignoreMandatoryFields: true
});
} catch (e) {
log.error('ERROR', e.message);
}
creece
04/01/2021, 7:22 PMAbe Rudy
04/01/2021, 7:38 PMAbe Rudy
04/01/2021, 7:51 PMN/format
to format a CCEXPDATE date format for the expiration date, per the records browserSandii
04/01/2021, 8:00 PM