diff --git a/service/cards.js b/service/cards.js index 5bef695..c955762 100644 --- a/service/cards.js +++ b/service/cards.js @@ -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',