From 0ba6b2124d0c302fdae69e263725a36e436de2ee Mon Sep 17 00:00:00 2001 From: Uchi Uchibeke Date: Thu, 24 Oct 2024 22:18:16 +0200 Subject: [PATCH 1/2] check for all payment methods before throwing error --- open-giving/src/pages/api/chimoney-donate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/open-giving/src/pages/api/chimoney-donate.js b/open-giving/src/pages/api/chimoney-donate.js index 80fb912..2d192e5 100644 --- a/open-giving/src/pages/api/chimoney-donate.js +++ b/open-giving/src/pages/api/chimoney-donate.js @@ -33,7 +33,7 @@ export default async function handler(req, res) { ); } - if (!walletID) { + if (!walletID && !interledgerWalletAddress) { res.status(400).json({ error: `Wallet ID is not set for this Organization in ${ useTestPaymentID ? 'Test' : 'Production' From 00bed101a1c9e981f09836dec973a7cb7ffa72f1 Mon Sep 17 00:00:00 2001 From: Uchi Uchibeke Date: Thu, 24 Oct 2024 22:19:26 +0200 Subject: [PATCH 2/2] check for all payment methods before throwing error --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cb60798..adcbc71 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "non-profit-donations", - "version": "0.1.2", + "version": "0.1.3", "description": "Support non-profits globally. Get the details of verified non profits to support", "main": "build/main/index.js", "typings": "build/main/index.d.ts",