This commit is contained in:
CHIEFSOFT\ameye
2024-10-20 08:24:44 -04:00
parent e851bca209
commit fec2070326
+24
View File
@@ -38,6 +38,30 @@ var cards = {
logger.info("READY FOR STRIPE CALL ",req_data);
var ReqParam = {
name: req_data.name,
email: 'jenny.rosen@example.com',
phone_number: '+18008675309',
status: 'active',
type: 'individual',
individual: {
first_name: req_data.firstname,
last_name: req_data.lastname,
dob: {day: 1, month: 11, year: 1981},
},
billing: {
address: {
line1: req_data.address,
city: result.rows[0].city,
state: result.rows[0].state,
postal_code: result.rows[0].postal_code,
country: result.rows[0].country,
},
},
};
logger.log("REQ=>", ReqParam);
const cardholder = await stripe.issuing.cardholders.create({
name: req_data.name,
email: 'jenny.rosen@example.com',