logger.info(req.body);

This commit is contained in:
CHIEFSOFT\ameye
2024-10-19 00:09:46 -04:00
parent 003a1a69ec
commit d8206f9e0c
+13
View File
@@ -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',