@@ -4,27 +4,27 @@ discard block |
||
4 | 4 | # note - new annual and monthly payments need to be defined as new prices in stripe |
5 | 5 | # e.g. 'donate_monthly_10'. |
6 | 6 | $payment_amounts = array( |
7 | - 'monthly' => array( |
|
7 | + 'monthly' => array( |
|
8 | 8 | '2' => '£2', |
9 | 9 | '5' => '£5', |
10 | 10 | '10' => '£10', |
11 | - ), |
|
12 | - 'annually' => array( |
|
11 | + ), |
|
12 | + 'annually' => array( |
|
13 | 13 | '10' => '£10', |
14 | 14 | '50' => '£50', |
15 | 15 | '100' => '£100', |
16 | - ), |
|
17 | - 'one-off' => array( |
|
16 | + ), |
|
17 | + 'one-off' => array( |
|
18 | 18 | '10' => '£10', |
19 | 19 | '25' => '£25', |
20 | 20 | '50' => '£50', |
21 | - ), |
|
21 | + ), |
|
22 | 22 | ); |
23 | 23 | |
24 | 24 | $default_amounts = array( |
25 | - 'monthly' => '5', |
|
26 | - 'annually' => '10', |
|
27 | - 'one-off' => '25', |
|
25 | + 'monthly' => '5', |
|
26 | + 'annually' => '10', |
|
27 | + 'one-off' => '25', |
|
28 | 28 | ); |
29 | 29 | |
30 | 30 | $default_type = 'annually'; |
@@ -37,10 +37,10 @@ discard block |
||
37 | 37 | |
38 | 38 | # if how-much is not in the allowed values for the current payment type, set to 'other', and set $other_how_much to the value of how-much |
39 | 39 | if (!array_key_exists($how_much, $payment_amounts[$initial_payment_type])) { |
40 | - $how_much = 'other'; |
|
41 | - $other_how_much = $_GET['how-much']; |
|
40 | + $how_much = 'other'; |
|
41 | + $other_how_much = $_GET['how-much']; |
|
42 | 42 | } else { |
43 | - $other_how_much = ''; |
|
43 | + $other_how_much = ''; |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | ?> |