production secret added

This commit is contained in:
2026-03-24 14:16:27 -04:00
parent d772b7ec9c
commit 1300084481
5 changed files with 60 additions and 10 deletions

View File

@@ -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);
},

View File

@@ -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()}`;
}