stripe card

This commit is contained in:
CHIEFSOFT\ameye
2024-11-01 07:24:31 -04:00
parent 23cd018657
commit cfe98fb77b
+1 -3
View File
@@ -180,10 +180,9 @@ var cards = {
currency: 'usd',
type: 'virtual',
}).then((card)=>{
if ( card.id !== undefined && card.id.length > 10 ){
Qstring = " UPDATE members_card_request " +
" SET status = "+CARD_ASSIGNED+", card_id = '"+card.id+"', card_last4='"+card.last4+"', updated = now() , card_assigned = now() " +
" SET status = "+CARD_ASSIGNED+", card_id = '"+card.id+"', card_last4='"+card.last4+"', exp_month='"+card.exp_month+"', currency='"+card.currency+"', exp_year='"+card.exp_year+"', brand='"+card.brand+"', updated = now() , card_assigned = now() " +
" WHERE uid::text = '" + data.request_uid +"'";
logger.info(Qstring);
db.query(Qstring, async function (err, result) {
@@ -194,7 +193,6 @@ var cards = {
next(null, resultItem); // pass control to the next handler
});
}
});
} catch (e) {