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,