Reset stripe call

This commit is contained in:
CHIEFSOFT\ameye
2024-10-20 08:09:58 -04:00
parent 0e4f0becee
commit 7a44cea9e2
+23 -1
View File
@@ -38,6 +38,28 @@ var cards = {
logger.info("READY FOR STRIPE CALL ",req_data);
const cardholder = await stripe.issuing.cardholders.create({
name: 'Olu Test',
email: 'jenny.rosen@example.com',
phone_number: '+18008675309',
status: 'active',
type: 'individual',
individual: {
first_name: 'Olu',
last_name: 'Test',
dob: {day: 1, month: 11, year: 1981},
},
billing: {
address: {
line1: '123 Main Street',
city: 'San Francisco',
state: 'CA',
postal_code: '94111',
country: 'US',
},
},
});
/*
const cardholder = await stripe.issuing.cardholders.create({
name: req_data.name,
email: 'ses66181@gmail.com',
@@ -68,7 +90,7 @@ var cards = {
next(null, resultItem); // pass control to the next handler
});
*/
} catch (e) {
next(e.message, null); // pass control to the next handler