From 1109322c30fc4e5690a222425fba848bbbb24172 Mon Sep 17 00:00:00 2001 From: Alex Parsons Date: Tue, 19 Mar 2024 19:31:32 +0000 Subject: [PATCH] fixup! Add stripe donate form --- conf/general-example | 2 ++ www/includes/easyparliament/helper-donate.php | 2 +- .../easyparliament/templates/html/donate/_stripe_donate.php | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/conf/general-example b/conf/general-example index 722cb71ff0..8fd538b984 100644 --- a/conf/general-example +++ b/conf/general-example @@ -173,6 +173,8 @@ define('FACEBOOK_APP_SECRET', ''); define('OPTION_RECAPTCHA_SITE_KEY', ''); define('OPTION_RECAPTCHA_SECRET', ''); +define('STRIPE_DONATE_PUBLIC_KEY', ''); +define('STRIPE_DONATE_SECRET_KEY', ''); define('STRIPE_PUBLIC_KEY', ''); define('STRIPE_SECRET_KEY', ''); diff --git a/www/includes/easyparliament/helper-donate.php b/www/includes/easyparliament/helper-donate.php index 047a909033..0ba2bc27c5 100644 --- a/www/includes/easyparliament/helper-donate.php +++ b/www/includes/easyparliament/helper-donate.php @@ -57,7 +57,7 @@ function contact_decision() function stripe_post($path, $data) { $result = donate_post_api( - STRIPE_SECRET_KEY, + STRIPE_DONATE_SECRET_KEY, "https://api.stripe.com/v1" . $path, $data, "html" diff --git a/www/includes/easyparliament/templates/html/donate/_stripe_donate.php b/www/includes/easyparliament/templates/html/donate/_stripe_donate.php index ea0beac41e..d4549b1ce4 100644 --- a/www/includes/easyparliament/templates/html/donate/_stripe_donate.php +++ b/www/includes/easyparliament/templates/html/donate/_stripe_donate.php @@ -151,5 +151,5 @@ class="donate--amount inline-radio-label"