Remove bitcoin support

Stripe is dropping support on their end, too
static-cp-fix
Drew DeVault 7 years ago
parent 8d6df129eb
commit 1c84a0b08e
  1. 3
      config.ini.example
  2. 1
      scripts/index.js
  3. 4
      templates/index.html

@ -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?

@ -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...";

@ -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}}";
<h3>How often?</h3>
<div class="row">
<div class="col-md-4 col-md-offset-4">
{% if _cfg("enable-bitcoin") == "yes" %}
<p class="text-muted"><small>Bitcoin is only supported for one-time donations.</small></p>
{% endif %}
<div class="form-group">
<div class="btn-group btn-group-justified frequencies" role="group" aria-label="...">
<div class="btn-group" role="group">

Loading…
Cancel
Save