production secret added
This commit is contained in:
@@ -24,7 +24,9 @@ export function subscribeToDonors(callback) {
|
||||
(snapshot) => {
|
||||
const donors = [];
|
||||
snapshot.forEach((doc) => {
|
||||
donors.push({ id: doc.id, ...doc.data() });
|
||||
const data = doc.data();
|
||||
if (data.env === 'dev') return; // skip test donations
|
||||
donors.push({ id: doc.id, ...data });
|
||||
});
|
||||
callback(donors);
|
||||
},
|
||||
|
||||
@@ -35,6 +35,7 @@ export function buildPaymentUrl(pendingId, amount, donorName) {
|
||||
reason: reason,
|
||||
invoice_id: pendingId,
|
||||
redirect: 'true',
|
||||
webhook: 'true',
|
||||
});
|
||||
return `${PAYMENT_BASE_URL}/${MERCHANT_HANDLE}?${params.toString()}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user