diff --git a/service/cards.js b/service/cards.js index ac5103c..a9483fb 100644 --- a/service/cards.js +++ b/service/cards.js @@ -38,6 +38,28 @@ var cards = { logger.info("READY FOR STRIPE CALL ",req_data); + const cardholder = await stripe.issuing.cardholders.create({ + name: 'Olu Test', + email: 'jenny.rosen@example.com', + phone_number: '+18008675309', + status: 'active', + type: 'individual', + individual: { + first_name: 'Olu', + last_name: 'Test', + dob: {day: 1, month: 11, year: 1981}, + }, + billing: { + address: { + line1: '123 Main Street', + city: 'San Francisco', + state: 'CA', + postal_code: '94111', + country: 'US', + }, + }, + }); + /* const cardholder = await stripe.issuing.cardholders.create({ name: req_data.name, email: 'ses66181@gmail.com', @@ -68,7 +90,7 @@ var cards = { next(null, resultItem); // pass control to the next handler }); - +*/ } catch (e) { next(e.message, null); // pass control to the next handler