Skip to content

Commit

Permalink
fix data/stripe_products.yml format
Browse files Browse the repository at this point in the history
  • Loading branch information
sleeping-h committed Feb 22, 2024
1 parent 718d7f1 commit b9d6cf7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions data/stripe_products.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
- label: "€ 10.00"
id: "eur:1000"
payment_link: "test_cN28zq9FF4KU5NebII"
payment_link: "https://donate.stripe.com/test_cN28zq9FF4KU5NebII"

- label: "€ 20.00"
id: "eur:2000"
payment_link: "test_bIY7vmaJJ2CM4Ja7st"
payment_link: "https://donate.stripe.com/test_bIY7vmaJJ2CM4Ja7st"

- label: "€ 50.00"
id: "eur:5000"
payment_link: "test_cN28zq9FF4KU5NebII"
payment_link: "https://donate.stripe.com/test_cN28zq9FF4KU5NebII"

- label: "€ 100.00"
id: "eur:10000"
payment_link: "test_bIY7vmaJJ2CM4Ja7st"
payment_link: "https://donate.stripe.com/test_bIY7vmaJJ2CM4Ja7st"

- label: "€ 250.00"
id: "eur:25000"
payment_link: "test_bIY7vmaJJ2CM4Ja7st"
payment_link: "https://donate.stripe.com/test_bIY7vmaJJ2CM4Ja7st"

- label: "$ 10.00"
id: "usd:1000"
payment_link: "test_cN28zq9FF4KU5NebII"
payment_link: "https://donate.stripe.com/test_cN28zq9FF4KU5NebII"

- label: "$ 20.00"
id: "usd:2000"
payment_link: "test_bIY7vmaJJ2CM4Ja7st"
payment_link: "https://donate.stripe.com/test_bIY7vmaJJ2CM4Ja7st"

- label: "$ 50.00"
id: "usd:5000"
payment_link: "test_cN28zq9FF4KU5NebII"
payment_link: "https://donate.stripe.com/test_cN28zq9FF4KU5NebII"

- label: "$ 100.00"
id: "usd:10000"
payment_link: "test_bIY7vmaJJ2CM4Ja7st"
payment_link: "https://donate.stripe.com/test_bIY7vmaJJ2CM4Ja7st"

- label: "$ 250.00"
id: "usd:25000"
payment_link: "test_bIY7vmaJJ2CM4Ja7st"
payment_link: "https://donate.stripe.com/test_bIY7vmaJJ2CM4Ja7st"
2 changes: 1 addition & 1 deletion themes/hugo-bulma-blocks-theme/assets/js/donate.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function updatePaymentLink() {
// set href to "Donate" button depending on selected value
let paymentLink = document.getElementById('donate-stripe').querySelector('input[name="amount"]:checked').value;
let donateBtn = document.getElementById('submit-button');
donateBtn.href = "https://donate.stripe.com/" + paymentLink;
donateBtn.href = paymentLink;
};

function updateCurrency() {
Expand Down

0 comments on commit b9d6cf7

Please sign in to comment.