Remove bitcoin support

Stripe is dropping support on their end, too
This commit is contained in:
Drew DeVault 2018-02-19 20:46:31 -05:00
parent 8d6df129eb
commit 1c84a0b08e
3 changed files with 0 additions and 8 deletions

View File

@ -31,9 +31,6 @@ connection-string=postgresql://postgres@localhost/fosspay
stripe-secret= stripe-secret=
stripe-publish= stripe-publish=
# Click here first: https://dashboard.stripe.com/account/bitcoin/enable
enable-bitcoin=no
# Separate with spaces # Separate with spaces
default-amounts=3 5 10 20 default-amounts=3 5 10 20
# Which one to pick when they arrive? # Which one to pick when they arrive?

View File

@ -78,7 +78,6 @@
description: donation.type == "monthly" ? "Monthly Donation" : "One-time Donation", description: donation.type == "monthly" ? "Monthly Donation" : "One-time Donation",
panelLabel: "Donate {{amount}}", panelLabel: "Donate {{amount}}",
amount: donation.amount, amount: donation.amount,
bitcoin: donation.type == "once" && window.bitcoin,
token: function(token) { token: function(token) {
e.target.setAttribute("disabled", ""); e.target.setAttribute("disabled", "");
e.target.textContent = "Submitting..."; e.target.textContent = "Submitting...";

View File

@ -4,7 +4,6 @@
window.stripe_key = "{{ _cfg("stripe-publish") }}"; window.stripe_key = "{{ _cfg("stripe-publish") }}";
window.avatar = "{{ avatar }}"; window.avatar = "{{ avatar }}";
window.your_name = "{{ _cfg("your-name") }}"; window.your_name = "{{ _cfg("your-name") }}";
window.bitcoin = "{{ _cfg("enable-bitcoin") }}" === "yes";
window.default_amount = {{ _cfg("default-amount") }}; window.default_amount = {{ _cfg("default-amount") }};
window.default_type = "{{ _cfg("default-type") }}"; window.default_type = "{{ _cfg("default-type") }}";
{% if user %} {% if user %}
@ -79,9 +78,6 @@ window.email = "{{user.email}}";
<h3>How often?</h3> <h3>How often?</h3>
<div class="row"> <div class="row">
<div class="col-md-4 col-md-offset-4"> <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="form-group">
<div class="btn-group btn-group-justified frequencies" role="group" aria-label="..."> <div class="btn-group btn-group-justified frequencies" role="group" aria-label="...">
<div class="btn-group" role="group"> <div class="btn-group" role="group">