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) => {