cleanup for getting verified charities and also proper sendgrid and org transfer for payments

This commit is contained in:
Arjun Patel
2019-04-13 13:58:19 -07:00
parent 66df6bb576
commit 7b38620605
2 changed files with 29 additions and 9 deletions
+2 -2
View File
@@ -29,7 +29,7 @@ exports.grantCharge = async ({
source: 'tok_visa',
description: `Charity Bundle Payment`,
statement_descriptor: `charity bundle ${grant.id}`,
receipt_email: '[email protected]'
receipt_email: donors[0].email
});
let transfers = await organizations.map(async org => {
@@ -40,7 +40,7 @@ exports.grantCharge = async ({
amount: stripeOrgAmount - applicationStripeFee,
currency: 'usd',
source_transaction: charge.id,
destination: 'acct_1EAxzUIVW1uo07uH'
destination: org.stripe_account_id
});
return t;
});