From 7a44cea9e22175523195857de4b592c87522085e Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sun, 20 Oct 2024 08:09:58 -0400 Subject: [PATCH] Reset stripe call --- service/cards.js | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) 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