File tree 2 files changed +6
-3
lines changed 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -265,5 +265,8 @@ module.exports = {
265
265
// The interview completed past time for fetching interviews
266
266
INTERVIEW_COMPLETED_PAST_TIME : process . env . INTERVIEW_COMPLETED_PAST_TIME || 'PT4H' ,
267
267
// The time before resource booking expiry when we should start sending notifications
268
- RESOURCE_BOOKING_EXPIRY_TIME : process . env . RESOURCE_BOOKING_EXPIRY_TIME || 'P21D'
268
+ RESOURCE_BOOKING_EXPIRY_TIME : process . env . RESOURCE_BOOKING_EXPIRY_TIME || 'P21D' ,
269
+ // The Stripe
270
+ STRIPE_SECRET_KEY : process . env . STRIPE_SECRET_KEY ,
271
+ CURRENCY : process . env . CURRENCY || 'usd'
269
272
}
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const { getAuditM2Muser } = require('../common/helper')
19
19
const { matchedSkills, unMatchedSkills } = require ( '../../scripts/emsi-mapping/esmi-skills-mapping' )
20
20
const Role = models . Role
21
21
const RoleSearchRequest = models . RoleSearchRequest
22
- const stripe = require ( "stripe" ) ( process . env . STRIPE_SECRET_KEY ) ;
22
+ const stripe = require ( "stripe" ) ( config . STRIPE_SECRET_KEY ) ;
23
23
24
24
const emailTemplates = helper . getEmailTemplatesForKey ( 'teamTemplates' )
25
25
@@ -1174,7 +1174,7 @@ suggestMembers.schema = Joi.object().keys({
1174
1174
async function createPayment ( totalAmount ) {
1175
1175
const paymentIntent = await stripe . paymentIntents . create ( {
1176
1176
amount : totalAmount ,
1177
- currency : process . env . CURRENCY ,
1177
+ currency : config . CURRENCY ,
1178
1178
} ) ;
1179
1179
return { paymentIntentToken : paymentIntent . client_secret } ;
1180
1180
}
You can’t perform that action at this time.
0 commit comments