Skip to content

Commit

Permalink
fixup! Add stripe donate form
Browse files Browse the repository at this point in the history
  • Loading branch information
ajparsons committed Apr 2, 2024
1 parent 2601260 commit 1109322
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions conf/general-example
Original file line number Diff line number Diff line change
Expand Up @@ -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', '');
Expand Down
2 changes: 1 addition & 1 deletion www/includes/easyparliament/helper-donate.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,5 +151,5 @@ class="donate-<?=$payment_type?>-amount inline-radio-label"

<script src="https://js.stripe.com/v3"></script>
<script>
var stripe = Stripe('<?=STRIPE_PUBLIC_KEY ?>');
var stripe = Stripe('<?=STRIPE_DONATE_PUBLIC_KEY ?>');
</script>

0 comments on commit 1109322

Please sign in to comment.