From 02fdedd0288b416c578865e889cd3334a7804703 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Wed, 30 Oct 2024 19:05:23 -0400 Subject: [PATCH] card created --- service/cards.js | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/service/cards.js b/service/cards.js index 55600ba..21909e6 100644 --- a/service/cards.js +++ b/service/cards.js @@ -95,16 +95,23 @@ var cards = { } ).then((cardConfirm)=>{ + const card = await stripe.issuing.cards.create({ + cardholder: cardholder.id, + currency: 'usd', + type: 'virtual', + }); - + let resultItem = { + "result": cardholder, + "result_confirm": cardConfirm, + "card": card, + "total_record": 0 + } + next(null, resultItem); // pass control to the next handler console.log(cardConfirm); }); - let resultItem = { - "result": cardholder, - "total_record": 0 - } - next(null, resultItem); // pass control to the next handler + }); }).catch((error) => {