Skip to content

Commit d2948e3

Browse files
committed
Added donation section with fixed payment logic
1 parent cca4c7a commit d2948e3

2 files changed

Lines changed: 6 additions & 10 deletions

File tree

wasp/assets/js/script.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -137,19 +137,11 @@ $(document).ready(function () {
137137
// Donation Handling
138138
window.donate = function (platform, amount) {
139139
if (platform === 'paypal') {
140-
const email = "salilmhatre88@gmail.com"; // TODO: Replace with actual PayPal email
141-
if (email === "salilmhatre88@gmail.com") {
142-
alert("Please configure the PayPal email in assets/js/script.js");
143-
return;
144-
}
140+
const email = "salilmhatre88@gmail.com";
145141
const url = `https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=${email}&currency_code=USD&amount=${amount}&item_name=WASP%20Donation`;
146142
window.open(url, '_blank');
147143
} else if (platform === 'bmac') {
148-
const username = "deadpool2k"; // TODO: Replace with actual BMAC username
149-
if (username === "deadpool2k") {
150-
alert("Please configure the Buy Me a Coffee username in assets/js/script.js");
151-
return;
152-
}
144+
const username = "deadpool2k";
153145
// BMAC doesn't support direct amount via URL easily, usually it's per 'coffee'
154146
const url = `https://www.buymeacoffee.com/${username}`;
155147
window.open(url, '_blank');

wasp/assets/js/translations.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ const translations = {
111111
faq_q5: "> What if I work from home?",
112112
faq_a5: "Perfect! Use it for lunch, household chores, or that quick nap you need.",
113113

114+
// Donation
115+
donate_title: "Fuel the Rebellion",
116+
donate_desc: "Caffeine is the only fuel that keeps this resistance alive. Support the developers who save your sanity.",
117+
114118
// Download
115119
download_title: "Escaping the Matrix?",
116120
download_desc: "Download the standalone executable and reclaim your freedom. No installation required. No traces left behind. Just pure, unadulterated \"activity\".",

0 commit comments

Comments
 (0)