From f56448a975b79aa16a00f91302dd44ac9c266f01 Mon Sep 17 00:00:00 2001 From: Paul Norman Date: Tue, 7 Oct 2025 13:33:55 -0700 Subject: [PATCH] web: funding: Fix currency mismatches Each entry in the plan array must have exactly one ISO 4217 currency code. As we not all funding channels accept all currencies, splitting the one-time donation into multiple plans allows for the donation of multiple currencies. Some channels have no ISO 4217 currency listed and cannot be part of any plan. --- .../web/files/default/static/funding.json | 33 ++++++++++++++++--- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/cookbooks/web/files/default/static/funding.json b/cookbooks/web/files/default/static/funding.json index 33c82e1bf..1f098eda6 100644 --- a/cookbooks/web/files/default/static/funding.json +++ b/cookbooks/web/files/default/static/funding.json @@ -75,22 +75,45 @@ ], "plans": [ { - "guid": "one-time-donation", + "guid": "one-time-donation-usd", "status": "active", - "name": "One-time donation", + "name": "One-time USD donation", "amount": 0, "currency": "USD", "frequency": "one-time", "channels": [ "funding-website", - "bitcoin", - "eur-account", "usd-account", - "gbp-account", "paypal", "gh-sponsors" ] }, + { + "guid": "one-time-donation-gbp", + "status": "active", + "name": "One-time GBP donation", + "amount": 0, + "currency": "USD", + "frequency": "one-time", + "channels": [ + "funding-website", + "gbp-account", + "paypal" + ] + }, + { + "guid": "one-time-donation-eur", + "status": "active", + "name": "One-time EUR donation", + "amount": 0, + "currency": "USD", + "frequency": "one-time", + "channels": [ + "funding-website", + "eur-account", + "paypal" + ] + }, { "guid": "normal-membership", "status": "active", -- 2.39.5