logger.info(req.body);
This commit is contained in:
@@ -24,6 +24,19 @@ var cards = {
|
||||
logger.info("RESULT 001", result.rows[0].firstname);
|
||||
// logger.info("RESULT 002", result[0].firstname);
|
||||
|
||||
var req_data = {
|
||||
"firstname": result.rows[0].firstname,
|
||||
"lastname": result.rows[0].lastname,
|
||||
"email": result.rows[0].email,
|
||||
"address": result.rows[0].address,
|
||||
"city": result.rows[0].city,
|
||||
"state": result.rows[0].state,
|
||||
"postal_code": result.rows[0].postal_code,
|
||||
"country": result.rows[0].country,
|
||||
};
|
||||
|
||||
logger.info("READY FOR STRIPE CALL ",req_data);
|
||||
|
||||
const cardholder = await stripe.issuing.cardholders.create({
|
||||
name: result.rows[0].firstname + ' '+ result.rows[0].lastname,
|
||||
email: 'ses66181@gmail.com',
|
||||
|
||||
Reference in New Issue
Block a user