Index: trunk/extensions/DonationInterface/donate_interface/donate_interface.php |
— | — | @@ -93,6 +93,8 @@ |
94 | 94 | //get payment method gateway value and name from each gateway and create menu of options |
95 | 95 | $values = ''; |
96 | 96 | wfRunHooks('gwValue', array(&$values)); |
| 97 | + |
| 98 | + $gatewayMenu = ''; |
97 | 99 | |
98 | 100 | foreach($values as $current) { |
99 | 101 | $gatewayMenu .= XML::option($current['display_name'], $current['form_value']); |
— | — | @@ -105,6 +107,8 @@ |
106 | 108 | foreach($values as $key) { |
107 | 109 | $currencies = $key['currencies']; |
108 | 110 | } |
| 111 | + |
| 112 | + $currencyMenu = ''; |
109 | 113 | |
110 | 114 | foreach($currencies as $value => $fullName) { |
111 | 115 | $currencyMenu .= XML::option($fullName, $value); |
— | — | @@ -185,11 +189,12 @@ |
186 | 190 | * matches the form value (also supplied by the gateway) |
187 | 191 | */ |
188 | 192 | function redirectToProcessorPage($userInput, $url) { |
189 | | - global $wgOut; |
| 193 | + global $wgOut,$wgPaymentGatewayHost; |
190 | 194 | |
191 | 195 | $chosenGateway = $userInput['payment_method']; |
192 | 196 | |
193 | | - $wgOut->redirect($url[$chosenGateway].'&amount='.$userInput['amount'].'¤cy_code='.$userInput['currency']); |
| 197 | + $wgOut->redirect( $wgPaymentGatewayHost . $url[$chosenGateway]. '&amount='. $userInput['amount']. |
| 198 | + '¤cy_code='. $userInput['currency']); |
194 | 199 | } |
195 | 200 | |
196 | 201 | /** |