updating dev environment with stripe key
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
const db = require('../../config/db.config.js'),
|
const db = require('../../config/db.config.js'),
|
||||||
errorMaker = require('../../helpers/error.maker');
|
errorMaker = require('../../helpers/error.maker');
|
||||||
|
|
||||||
const stripe = require('stripe')('sk_test_n8NCvCFjD1xFhGiEq6SI8CXj');
|
const stripe = require('stripe')(process.env.STRIPE_KEY);
|
||||||
|
|
||||||
const { Donor, Charge, PaymentPlan } = db;
|
const { Donor, Charge, PaymentPlan } = db;
|
||||||
|
|
||||||
@@ -43,7 +43,7 @@ exports.grantCharge = async (data, req, res) => {
|
|||||||
description: 'One time payment for grant',
|
description: 'One time payment for grant',
|
||||||
statement_descriptor: 'one-time-grant'
|
statement_descriptor: 'one-time-grant'
|
||||||
});
|
});
|
||||||
|
|
||||||
let transfers = await organizations.map(async (org) => {
|
let transfers = await organizations.map(async (org) => {
|
||||||
org.amount = org.amount * 100;
|
org.amount = org.amount * 100;
|
||||||
const applicationStripeFee = org.amount * 0.05;
|
const applicationStripeFee = org.amount * 0.05;
|
||||||
|
|||||||
Reference in New Issue
Block a user