diff --git a/www/includes/easyparliament/helper-donate.php b/www/includes/easyparliament/helper-donate.php index d930cc6e54..069b325eeb 100644 --- a/www/includes/easyparliament/helper-donate.php +++ b/www/includes/easyparliament/helper-donate.php @@ -78,7 +78,7 @@ function stripe_session_ajax($successPage, $cancelPage) $howoften = "monthly"; } $validPeriods = ["monthly" => "month", "annually" => "year"]; - $period = $validPeriods[$howoften] ?? "once"; + $period = $validPeriods[$howoften] ?? "one-off"; $metadata = [ "gift-aid" => $giftaid, @@ -112,7 +112,7 @@ function stripe_session_ajax($successPage, $cancelPage) We run services such as TheyWorkForYou, WhatDoTheyKnow and FixMyStreet. "; - if ($period == "once") { + if ($period == "one-off") { // one off payments $data += [ "mode" => "payment", diff --git a/www/includes/easyparliament/templates/html/donate/_stripe_donate.php b/www/includes/easyparliament/templates/html/donate/_stripe_donate.php index dfed65848d..21873a01fe 100644 --- a/www/includes/easyparliament/templates/html/donate/_stripe_donate.php +++ b/www/includes/easyparliament/templates/html/donate/_stripe_donate.php @@ -61,7 +61,7 @@

Donate to TheyWorkForYou and mySociety

- +