fixes to payments for the .3 to be distributed

This commit is contained in:
Arjun Patel
2019-05-09 01:35:41 -07:00
parent 98485a0da0
commit ed0cee28a2
3 changed files with 34 additions and 18 deletions
+3 -3
View File
@@ -21,7 +21,7 @@ exports.paymentReceipt = async ({
charitiesHtml += `<tr>
<td align="left" width="75%" style="padding: 6px 12px;font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 24px;">${
charity.name
}</td>
} <i>(${charity.ein})</i></td>
<td align="left" width="25%" style="padding: 6px 12px;font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 24px;">$${charity.finalAmountToOrg.toFixed(
2
)}</td>
@@ -32,7 +32,7 @@ exports.paymentReceipt = async ({
const msg = {
to: receiver.email,
from: { email: '[email protected]', name: 'Charify Payments' },
from: { email: 'no-reply@ucharify.com', name: 'UCharify Payments' },
template_id: 'd-569f804f5e7749cba66bac1994607280',
substitutionWrappers: ['{{', '}}'],
@@ -43,7 +43,7 @@ exports.paymentReceipt = async ({
total_amount,
transaction_fees: transaction_fees.toFixed(2),
date: currDate,
subject: 'Your Charify Bundle Payment - Charify'
subject: 'Your UCharify Bundle Payment'
}
};
const sentRes = await sgMail.send(msg);