From 878c2ff3bf1acfa48913cfa5ef67292cd6df9f99 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sun, 20 Oct 2024 13:58:52 -0400 Subject: [PATCH] fix call --- service/cards.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/service/cards.js b/service/cards.js index 3607259..cae7056 100644 --- a/service/cards.js +++ b/service/cards.js @@ -62,7 +62,14 @@ var cards = { logger.info("READY FOR STRIPE CALL ************************************************************************ NEXT "); logger.info("REQ=>", ReqParam); logger.info("READY FOR STRIPE CALL ************************************************************************ MORE "); - + const cardholder = await stripe.issuing.cardholders.create(ReqParam).then((callResult); + console.log(cardholder); + let resultItem = { + "result": cardholder, + "total_record": 0 + } + next(null, resultItem); // pass control to the next handler + /* const cardholder = await stripe.issuing.cardholders.create(ReqParam).then((callResult)=>{ console.log("Ameye **************************** AMEYE ----- "); console.log(callResult); @@ -73,6 +80,8 @@ var cards = { next(null, resultItem); // pass control to the next handler }); + + */ /* const cardholder = await stripe.issuing.cardholders.create({ name: req_data.name,