From 1c84a0b08ef3251d1e4fab6575dd1e6f10955658 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 19 Feb 2018 20:46:31 -0500 Subject: [PATCH] Remove bitcoin support Stripe is dropping support on their end, too --- config.ini.example | 3 --- scripts/index.js | 1 - templates/index.html | 4 ---- 3 files changed, 8 deletions(-) diff --git a/config.ini.example b/config.ini.example index f998127..bcb4af2 100644 --- a/config.ini.example +++ b/config.ini.example @@ -31,9 +31,6 @@ connection-string=postgresql://postgres@localhost/fosspay stripe-secret= stripe-publish= -# Click here first: https://dashboard.stripe.com/account/bitcoin/enable -enable-bitcoin=no - # Separate with spaces default-amounts=3 5 10 20 # Which one to pick when they arrive? diff --git a/scripts/index.js b/scripts/index.js index 6f3d847..0e630f3 100644 --- a/scripts/index.js +++ b/scripts/index.js @@ -78,7 +78,6 @@ description: donation.type == "monthly" ? "Monthly Donation" : "One-time Donation", panelLabel: "Donate {{amount}}", amount: donation.amount, - bitcoin: donation.type == "once" && window.bitcoin, token: function(token) { e.target.setAttribute("disabled", ""); e.target.textContent = "Submitting..."; diff --git a/templates/index.html b/templates/index.html index 10b0fe8..cd22531 100644 --- a/templates/index.html +++ b/templates/index.html @@ -4,7 +4,6 @@ window.stripe_key = "{{ _cfg("stripe-publish") }}"; window.avatar = "{{ avatar }}"; window.your_name = "{{ _cfg("your-name") }}"; -window.bitcoin = "{{ _cfg("enable-bitcoin") }}" === "yes"; window.default_amount = {{ _cfg("default-amount") }}; window.default_type = "{{ _cfg("default-type") }}"; {% if user %} @@ -79,9 +78,6 @@ window.email = "{{user.email}}";

How often?

- {% if _cfg("enable-bitcoin") == "yes" %} -

Bitcoin is only supported for one-time donations.

- {% endif %}