stripe card
This commit is contained in:
+1
-3
@@ -180,10 +180,9 @@ var cards = {
|
|||||||
currency: 'usd',
|
currency: 'usd',
|
||||||
type: 'virtual',
|
type: 'virtual',
|
||||||
}).then((card)=>{
|
}).then((card)=>{
|
||||||
|
|
||||||
if ( card.id !== undefined && card.id.length > 10 ){
|
if ( card.id !== undefined && card.id.length > 10 ){
|
||||||
Qstring = " UPDATE members_card_request " +
|
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 +"'";
|
" WHERE uid::text = '" + data.request_uid +"'";
|
||||||
logger.info(Qstring);
|
logger.info(Qstring);
|
||||||
db.query(Qstring, async function (err, result) {
|
db.query(Qstring, async function (err, result) {
|
||||||
@@ -194,7 +193,6 @@ var cards = {
|
|||||||
next(null, resultItem); // pass control to the next handler
|
next(null, resultItem); // pass control to the next handler
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user