Index: branches/fundraising/extensions/DonationInterface/gateway_forms/TwoColumnLetter5.php |
— | — | @@ -136,11 +136,11 @@ |
137 | 137 | $form .= '<tr>'; |
138 | 138 | $form .= '<td class="label">' . wfMsg( 'payflowpro_gateway-payment-type' ) . '</td>'; |
139 | 139 | $form .= '<td>' . |
140 | | - Xml::radio( 'card', 'cc1', $this->form_data['card'] == 'cc1', array( 'id' => 'cc1radio', 'onclick' => 'switchToCreditCard()' ) ) . '<label for="cc1radio">' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/card-visa.png" ) ). '</label>' . |
141 | | - Xml::radio( 'card', 'cc2', $this->form_data['card'] == 'cc2', array( 'id' => 'cc2radio', 'onclick' => 'switchToCreditCard()' ) ) . '<label for="cc2radio">' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/card-mastercard.png" ) ). '</label>' . |
142 | | - Xml::radio( 'card', 'cc3', $this->form_data['card'] == 'cc3', array( 'id' => 'cc3radio', 'onclick' => 'switchToCreditCard()' ) ) . '<label for="cc3radio">' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/card-amex.png" ) ). '</label>' . |
143 | | - Xml::radio( 'card', 'cc4', $this->form_data['card'] == 'cc4', array( 'id' => 'cc4radio', 'onclick' => 'switchToCreditCard()' ) ) . '<label for="cc4radio">' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/card-discover.png" ) ). '</label>' . |
144 | | - Xml::radio( 'card', 'pp', $this->form_data['card'] == 'pp', array( 'id' => 'ppradio', 'onclick' => 'switchToPayPal()' ) ) . '<label for="ppradio">' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/card-paypal.png" ) ) . '</label>' . |
| 140 | + Xml::radio( 'card_type', 'cc1', $this->form_data['card_type'] == 'cc1', array( 'id' => 'cc1radio', 'onclick' => 'switchToCreditCard()' ) ) . '<label for="cc1radio">' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/card-visa.png" ) ). '</label>' . |
| 141 | + Xml::radio( 'card_type', 'cc2', $this->form_data['card_type'] == 'cc2', array( 'id' => 'cc2radio', 'onclick' => 'switchToCreditCard()' ) ) . '<label for="cc2radio">' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/card-mastercard.png" ) ). '</label>' . |
| 142 | + Xml::radio( 'card_type', 'cc3', $this->form_data['card_type'] == 'cc3', array( 'id' => 'cc3radio', 'onclick' => 'switchToCreditCard()' ) ) . '<label for="cc3radio">' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/card-amex.png" ) ). '</label>' . |
| 143 | + Xml::radio( 'card_type', 'cc4', $this->form_data['card_type'] == 'cc4', array( 'id' => 'cc4radio', 'onclick' => 'switchToCreditCard()' ) ) . '<label for="cc4radio">' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/card-discover.png" ) ). '</label>' . |
| 144 | + Xml::radio( 'card_type', 'pp', $this->form_data['card_type'] == 'pp', array( 'id' => 'ppradio', 'onclick' => 'switchToPayPal()' ) ) . '<label for="ppradio">' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/card-paypal.png" ) ) . '</label>' . |
145 | 145 | '</td>'; |
146 | 146 | $form .= '</tr>'; |
147 | 147 | |
Index: branches/fundraising/extensions/DonationInterface/gateway_forms/TwoColumnLetter6.php |
— | — | @@ -130,17 +130,17 @@ |
131 | 131 | $form .= '<tr>'; |
132 | 132 | $form .= '<td class="label">' . wfMsg( 'payflowpro_gateway-payment-type' ) . '</td>'; |
133 | 133 | $form .= '<td>' . |
134 | | - Xml::radio( 'card', 'cc1', $this->form_data['card'] == 'cc1', array( 'id' => 'cc1radio', 'onclick' => 'switchToCreditCard()' ) ) . '<label for="cc1radio">' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/card-visa.png" ) ). '</label>' . |
135 | | - Xml::radio( 'card', 'cc2', $this->form_data['card'] == 'cc2', array( 'id' => 'cc2radio', 'onclick' => 'switchToCreditCard()' ) ) . '<label for="cc2radio">' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/card-mastercard.png" ) ). '</label>' . |
136 | | - Xml::radio( 'card', 'cc3', $this->form_data['card'] == 'cc3', array( 'id' => 'cc3radio', 'onclick' => 'switchToCreditCard()' ) ) . '<label for="cc3radio">' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/card-amex.png" ) ). '</label>' . |
137 | | - Xml::radio( 'card', 'cc4', $this->form_data['card'] == 'cc4', array( 'id' => 'cc4radio', 'onclick' => 'switchToCreditCard()' ) ) . '<label for="cc4radio">' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/card-discover.png" ) ). '</label>' . |
138 | | - Xml::radio( 'card', 'pp', $this->form_data['card'] == 'pp', array( 'id' => 'ppradio', 'onclick' => 'switchToPayPal()' ) ) . '<label for="ppradio">' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/card-paypal.png" ) ) . '</label>' . |
| 134 | + Xml::radio( 'card_type', 'cc1', $this->form_data['card_type'] == 'cc1', array( 'id' => 'cc1radio', 'onclick' => 'switchToCreditCard()' ) ) . '<label for="cc1radio">' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/card-visa.png" ) ). '</label>' . |
| 135 | + Xml::radio( 'card_type', 'cc2', $this->form_data['card_type'] == 'cc2', array( 'id' => 'cc2radio', 'onclick' => 'switchToCreditCard()' ) ) . '<label for="cc2radio">' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/card-mastercard.png" ) ). '</label>' . |
| 136 | + Xml::radio( 'card_type', 'cc3', $this->form_data['card_type'] == 'cc3', array( 'id' => 'cc3radio', 'onclick' => 'switchToCreditCard()' ) ) . '<label for="cc3radio">' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/card-amex.png" ) ). '</label>' . |
| 137 | + Xml::radio( 'card_type', 'cc4', $this->form_data['card_type'] == 'cc4', array( 'id' => 'cc4radio', 'onclick' => 'switchToCreditCard()' ) ) . '<label for="cc4radio">' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/card-discover.png" ) ). '</label>' . |
| 138 | + Xml::radio( 'card_type', 'pp', $this->form_data['card_type'] == 'pp', array( 'id' => 'ppradio', 'onclick' => 'switchToPayPal()' ) ) . '<label for="ppradio">' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/card-paypal.png" ) ) . '</label>' . |
139 | 139 | '</td>'; |
140 | 140 | $form .= '</tr>'; |
141 | 141 | |
142 | 142 | $form .= '</table>'; |
143 | 143 | |
144 | | - if ( $this->form_data['card'] == 'cc1' || $this->form_data['card'] == 'cc2' || $this->form_data['card'] == 'cc3' || $this->form_data['card'] == 'cc4' ) { |
| 144 | + if ( $this->form_data['card_type'] == 'cc1' || $this->form_data['card_type'] == 'cc2' || $this->form_data['card_type'] == 'cc3' || $this->form_data['card_type'] == 'cc4' ) { |
145 | 145 | $form .= Xml::openElement( 'table', array( 'id' => 'payflow-table-cc' ) ); |
146 | 146 | } else { |
147 | 147 | $form .= Xml::openElement( 'table', array( 'id' => 'payflow-table-cc', 'style' => 'display: none;' ) ); |
— | — | @@ -202,7 +202,7 @@ |
203 | 203 | public function generateFormSubmit() { |
204 | 204 | |
205 | 205 | // cc submit button |
206 | | - if ( $this->form_data['card'] == 'cc1' || $this->form_data['card'] == 'cc2' || $this->form_data['card'] == 'cc3' || $this->form_data['card'] == 'cc4' ) { |
| 206 | + if ( $this->form_data['card_type'] == 'cc1' || $this->form_data['card_type'] == 'cc2' || $this->form_data['card_type'] == 'cc3' || $this->form_data['card_type'] == 'cc4' ) { |
207 | 207 | $form = Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-form-submit' ) ); |
208 | 208 | } else { |
209 | 209 | $form = Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-form-submit', 'style' => 'display: none;' ) ); |
— | — | @@ -216,7 +216,7 @@ |
217 | 217 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-form-submit |
218 | 218 | |
219 | 219 | // paypal submit button |
220 | | - if ( $this->form_data['card'] == 'cc1' || $this->form_data['card'] == 'cc2' || $this->form_data['card'] == 'cc3' || $this->form_data['card'] == 'cc4' ) { |
| 220 | + if ( $this->form_data['card_type'] == 'cc1' || $this->form_data['card_type'] == 'cc2' || $this->form_data['card_type'] == 'cc3' || $this->form_data['card_type'] == 'cc4' ) { |
221 | 221 | $form .= Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-form-submit-paypal', 'style' => 'display: none;' ) ); |
222 | 222 | } else { |
223 | 223 | $form .= Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-form-submit-paypal' ) ); |
Index: branches/fundraising/extensions/DonationInterface/gateway_forms/TwoColumnLetter7.php |
— | — | @@ -249,20 +249,20 @@ |
250 | 250 | $form .= '<td class="label""><div style="padding-top:9px;">' . wfMsg( 'payflowpro_gateway-payment-type' ) . '</div></td>'; |
251 | 251 | $form .= '<td>' . |
252 | 252 | '<p style="border: 1px solid rgb(187, 187, 187); float: left; -moz-border-radius: 5px 5px 5px 5px; margin: 0 8px 0 0; padding: 5px 5px 5px 3px; white-space: nowrap;">'. |
253 | | - Xml::radio( 'card', 'cc1', $this->form_data['card'] == 'cc1', array( 'id' => 'cc1radio', 'onclick' => 'switchToCreditCard()' ) ) . '<label for="cc1radio">' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/card-visa.png" ) ). '</label>' . |
| 253 | + Xml::radio( 'card_type', 'cc1', $this->form_data['card_type'] == 'cc1', array( 'id' => 'cc1radio', 'onclick' => 'switchToCreditCard()' ) ) . '<label for="cc1radio">' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/card-visa.png" ) ). '</label>' . |
254 | 254 | ' <label for="cc1radio">' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/card-mastercard.png" ) ). '</label>' . |
255 | 255 | ' <label for="cc1radio">' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/card-amex.png" ) ). '</label>' . |
256 | 256 | ' <label for="cc1radio">' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/card-discover.png" ) ). '</label>' . |
257 | 257 | '</p>'. |
258 | 258 | '<p style="border: 1px solid transparent; float: left; -moz-border-radius: 5px 5px 5px 5px; margin: 0; padding: 5px 5px 5px 3px; white-space: nowrap;">'. |
259 | | - Xml::radio( 'card', 'pp', $this->form_data['card'] == 'pp', array( 'id' => 'ppradio', 'onclick' => 'switchToPayPal()' ) ) . '<label for="ppradio">' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/card-paypal.png" ) ) . '</label>' . |
| 259 | + Xml::radio( 'card_type', 'pp', $this->form_data['card_type'] == 'pp', array( 'id' => 'ppradio', 'onclick' => 'switchToPayPal()' ) ) . '<label for="ppradio">' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/card-paypal.png" ) ) . '</label>' . |
260 | 260 | '</p>'. |
261 | 261 | '</td>'; |
262 | 262 | $form .= '</tr>'; |
263 | 263 | |
264 | 264 | $form .= '</table>'; |
265 | 265 | |
266 | | - if ( $this->form_data['card'] == 'cc1' || $this->form_data['card'] == 'cc2' || $this->form_data['card'] == 'cc3' || $this->form_data['card'] == 'cc4' ) { |
| 266 | + if ( $this->form_data['card_type'] == 'cc1' || $this->form_data['card_type'] == 'cc2' || $this->form_data['card_type'] == 'cc3' || $this->form_data['card_type'] == 'cc4' ) { |
267 | 267 | $form .= Xml::openElement( 'table', array( 'id' => 'payflow-table-cc' ) ); |
268 | 268 | } else { |
269 | 269 | $form .= Xml::openElement( 'table', array( 'id' => 'payflow-table-cc', 'style' => 'display: none;' ) ); |
— | — | @@ -360,7 +360,7 @@ |
361 | 361 | global $wgScriptPath; |
362 | 362 | |
363 | 363 | // cc submit button |
364 | | - if ( $this->form_data['card'] == 'cc1' || $this->form_data['card'] == 'cc2' || $this->form_data['card'] == 'cc3' || $this->form_data['card'] == 'cc4' ) { |
| 364 | + if ( $this->form_data['card_type'] == 'cc1' || $this->form_data['card_type'] == 'cc2' || $this->form_data['card_type'] == 'cc3' || $this->form_data['card_type'] == 'cc4' ) { |
365 | 365 | $form = Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-form-submit' ) ); |
366 | 366 | } else { |
367 | 367 | $form = Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-form-submit', 'style' => 'display: none;' ) ); |
— | — | @@ -374,7 +374,7 @@ |
375 | 375 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-form-submit |
376 | 376 | |
377 | 377 | // paypal submit button |
378 | | - if ( $this->form_data['card'] == 'cc1' || $this->form_data['card'] == 'cc2' || $this->form_data['card'] == 'cc3' || $this->form_data['card'] == 'cc4' ) { |
| 378 | + if ( $this->form_data['card_type'] == 'cc1' || $this->form_data['card_type'] == 'cc2' || $this->form_data['card_type'] == 'cc3' || $this->form_data['card_type'] == 'cc4' ) { |
379 | 379 | $form .= Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-form-submit-paypal', 'style' => 'display: none;' ) ); |
380 | 380 | } else { |
381 | 381 | $form .= Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-form-submit-paypal' ) ); |
Index: branches/fundraising/extensions/DonationInterface/gateway_forms/Form.php |
— | — | @@ -190,7 +190,7 @@ |
191 | 191 | // generate a dropdown opt for each card |
192 | 192 | foreach ( $available_cards as $value => $card_name ) { |
193 | 193 | // only load the card value if we're in testing mode |
194 | | - $selected = ( $value == $this->form_data[ 'card' ] && $this->test ) ? true : false; |
| 194 | + $selected = ( $value == $this->form_data[ 'card_type' ] && $this->test ) ? true : false; |
195 | 195 | $card_options .= Xml::option( $card_name, $value, $selected ); |
196 | 196 | } |
197 | 197 | |
— | — | @@ -198,8 +198,8 @@ |
199 | 199 | $card_menu = Xml::openElement( |
200 | 200 | 'select', |
201 | 201 | array( |
202 | | - 'name' => 'card', |
203 | | - 'id' => 'card' |
| 202 | + 'name' => 'card_type', |
| 203 | + 'id' => 'card_type' |
204 | 204 | ) ); |
205 | 205 | $card_menu .= $card_options; |
206 | 206 | $card_menu .= Xml::closeElement( 'select' ); |
— | — | @@ -476,9 +476,9 @@ |
477 | 477 | $form .= '<td colspan=2><span class="creditcard-error-msg">' . $this->form_errors['card_num'] . '</span></td>'; |
478 | 478 | $form .= '</tr>'; |
479 | 479 | } |
480 | | - if ( $this->form_errors['card'] ) { |
| 480 | + if ( $this->form_errors['card_type'] ) { |
481 | 481 | $form .= '<tr>'; |
482 | | - $form .= '<td colspan=2><span class="creditcard-error-msg">' . $this->form_errors['card'] . '</span></td>'; |
| 482 | + $form .= '<td colspan=2><span class="creditcard-error-msg">' . $this->form_errors['card_type'] . '</span></td>'; |
483 | 483 | $form .= '</tr>'; |
484 | 484 | } |
485 | 485 | $form .= '<tr>'; |
— | — | @@ -637,7 +637,7 @@ |
638 | 638 | |
639 | 639 | protected function getCreditCardTypeField() { |
640 | 640 | $form = '<tr>'; |
641 | | - $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-donor-card' ), 'card' ) . '</td>'; |
| 641 | + $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-donor-card' ), 'card_type' ) . '</td>'; |
642 | 642 | $form .= '<td>' . $this->generateCardDropdown() . '</td>'; |
643 | 643 | $form .= '</tr>'; |
644 | 644 | return $form; |
Index: branches/fundraising/extensions/DonationInterface/gateway_forms/TwoStepTwoColumnLetter3.php |
— | — | @@ -245,9 +245,9 @@ |
246 | 246 | $form .= '<td colspan=2><span class="creditcard-error-msg">' . $this->form_errors['card_num'] . '</span></td>'; |
247 | 247 | $form .= '</tr>'; |
248 | 248 | } |
249 | | - if ( $this->form_errors['card'] ) { |
| 249 | + if ( $this->form_errors['card_type'] ) { |
250 | 250 | $form .= '<tr>'; |
251 | | - $form .= '<td colspan=2><span class="creditcard-error-msg">' . $this->form_errors['card'] . '</span></td>'; |
| 251 | + $form .= '<td colspan=2><span class="creditcard-error-msg">' . $this->form_errors['card_type'] . '</span></td>'; |
252 | 252 | $form .= '</tr>'; |
253 | 253 | } |
254 | 254 | $form .= '<tr>'; |
Index: branches/fundraising/extensions/DonationInterface/gateway_forms/TwoStepTwoColumnPremiumUS.php |
— | — | @@ -223,9 +223,9 @@ |
224 | 224 | $form .= '<td colspan=2><span class="creditcard-error-msg">' . $this->form_errors['card_num'] . '</span></td>'; |
225 | 225 | $form .= '</tr>'; |
226 | 226 | } |
227 | | - if ( $this->form_errors['card'] ) { |
| 227 | + if ( $this->form_errors['card_type'] ) { |
228 | 228 | $form .= '<tr>'; |
229 | | - $form .= '<td colspan=2><span class="creditcard-error-msg">' . $this->form_errors['card'] . '</span></td>'; |
| 229 | + $form .= '<td colspan=2><span class="creditcard-error-msg">' . $this->form_errors['card_type'] . '</span></td>'; |
230 | 230 | $form .= '</tr>'; |
231 | 231 | } |
232 | 232 | $form .= '<tr>'; |
Index: branches/fundraising/extensions/DonationInterface/globalcollect_gateway/globalcollect_gateway.body.php |
— | — | @@ -62,22 +62,22 @@ |
63 | 63 | $wgPayFlowProGatewayCSSVersion ); |
64 | 64 | |
65 | 65 | $scriptVars = array( |
66 | | - 'globalcollectGatewayErrorMsgJs' => wfMsg( 'globalcollect_gateway-error-msg-js' ), |
67 | | - 'globalcollectGatewayErrorMsgEmail' => wfMsg( 'globalcollect_gateway-error-msg-email' ), |
68 | | - 'globalcollectGatewayErrorMsgAmount' => wfMsg( 'globalcollect_gateway-error-msg-amount' ), |
69 | | - 'globalcollectGatewayErrorMsgEmailAdd' => wfMsg( 'globalcollect_gateway-error-msg-emailAdd' ), |
70 | | - 'globalcollectGatewayErrorMsgFname' => wfMsg( 'globalcollect_gateway-error-msg-fname' ), |
71 | | - 'globalcollectGatewayErrorMsgLname' => wfMsg( 'globalcollect_gateway-error-msg-lname' ), |
72 | | - 'globalcollectGatewayErrorMsgStreet' => wfMsg( 'globalcollect_gateway-error-msg-street' ), |
73 | | - 'globalcollectGatewayErrorMsgCity' => wfMsg( 'globalcollect_gateway-error-msg-city' ), |
74 | | - 'globalcollectGatewayErrorMsgState' => wfMsg( 'globalcollect_gateway-error-msg-state' ), |
75 | | - 'globalcollectGatewayErrorMsgZip' => wfMsg( 'globalcollect_gateway-error-msg-zip' ), |
76 | | - 'globalcollectGatewayErrorMsgCountry' => wfMsg( 'globalcollect_gateway-error-msg-country' ), |
77 | | - 'globalcollectGatewayErrorMsgCardType' => wfMsg( 'globalcollect_gateway-error-msg-card_type' ), |
78 | | - 'globalcollectGatewayErrorMsgCardNum' => wfMsg( 'globalcollect_gateway-error-msg-card_num' ), |
79 | | - 'globalcollectGatewayErrorMsgExpiration' => wfMsg( 'globalcollect_gateway-error-msg-expiration' ), |
80 | | - 'globalcollectGatewayErrorMsgCvv' => wfMsg( 'globalcollect_gateway-error-msg-cvv' ), |
81 | | - 'globalcollectGatewayCVVExplain' => wfMsg( 'globalcollect_gateway-cvv-explain' ), |
| 66 | + 'globalcollectGatewayErrorMsgJs' => wfMsg( 'payflowpro_gateway-error-msg-js' ), |
| 67 | + 'globalcollectGatewayErrorMsgEmail' => wfMsg( 'payflowpro_gateway-error-msg-email' ), |
| 68 | + 'globalcollectGatewayErrorMsgAmount' => wfMsg( 'payflowpro_gateway-error-msg-amount' ), |
| 69 | + 'globalcollectGatewayErrorMsgEmailAdd' => wfMsg( 'payflowpro_gateway-error-msg-emailAdd' ), |
| 70 | + 'globalcollectGatewayErrorMsgFname' => wfMsg( 'payflowpro_gateway-error-msg-fname' ), |
| 71 | + 'globalcollectGatewayErrorMsgLname' => wfMsg( 'payflowpro_gateway-error-msg-lname' ), |
| 72 | + 'globalcollectGatewayErrorMsgStreet' => wfMsg( 'payflowpro_gateway-error-msg-street' ), |
| 73 | + 'globalcollectGatewayErrorMsgCity' => wfMsg( 'payflowpro_gateway-error-msg-city' ), |
| 74 | + 'globalcollectGatewayErrorMsgState' => wfMsg( 'payflowpro_gateway-error-msg-state' ), |
| 75 | + 'globalcollectGatewayErrorMsgZip' => wfMsg( 'payflowpro_gateway-error-msg-zip' ), |
| 76 | + 'globalcollectGatewayErrorMsgCountry' => wfMsg( 'payflowpro_gateway-error-msg-country' ), |
| 77 | + 'globalcollectGatewayErrorMsgCardType' => wfMsg( 'payflowpro_gateway-error-msg-card_type' ), |
| 78 | + 'globalcollectGatewayErrorMsgCardNum' => wfMsg( 'payflowpro_gateway-error-msg-card_num' ), |
| 79 | + 'globalcollectGatewayErrorMsgExpiration' => wfMsg( 'payflowpro_gateway-error-msg-expiration' ), |
| 80 | + 'globalcollectGatewayErrorMsgCvv' => wfMsg( 'payflowpro_gateway-error-msg-cvv' ), |
| 81 | + 'globalcollectGatewayCVVExplain' => wfMsg( 'payflowpro_gateway-cvv-explain' ), |
82 | 82 | ); |
83 | 83 | |
84 | 84 | $wgOut->addScript( Skin::makeVariablesScript( $scriptVars ) ); |
— | — | @@ -182,7 +182,7 @@ |
183 | 183 | } else { |
184 | 184 | if ( !$this->adapter->isCache() ) { |
185 | 185 | // if we're not caching, there's a token mismatch |
186 | | - $this->errors['general']['token-mismatch'] = wfMsg( 'globalcollect_gateway-token-mismatch' ); |
| 186 | + $this->errors['general']['token-mismatch'] = wfMsg( 'payflowpro_gateway-token-mismatch' ); |
187 | 187 | } |
188 | 188 | $this->fnPayflowDisplayForm( $data, $this->errors ); |
189 | 189 | } |
— | — | @@ -264,17 +264,17 @@ |
265 | 265 | // create the human-speak message for required fields |
266 | 266 | // does not include fields that are not required |
267 | 267 | $msg = array( |
268 | | - 'amount' => wfMsg( 'globalcollect_gateway-error-msg-amount' ), |
269 | | - 'emailAdd' => wfMsg( 'globalcollect_gateway-error-msg-emailAdd' ), |
270 | | - 'fname' => wfMsg( 'globalcollect_gateway-error-msg-fname' ), |
271 | | - 'lname' => wfMsg( 'globalcollect_gateway-error-msg-lname' ), |
272 | | - 'street' => wfMsg( 'globalcollect_gateway-error-msg-street' ), |
273 | | - 'city' => wfMsg( 'globalcollect_gateway-error-msg-city' ), |
274 | | - 'state' => wfMsg( 'globalcollect_gateway-error-msg-state' ), |
275 | | - 'zip' => wfMsg( 'globalcollect_gateway-error-msg-zip' ), |
276 | | - 'card_num' => wfMsg( 'globalcollect_gateway-error-msg-card_num' ), |
277 | | - 'expiration' => wfMsg( 'globalcollect_gateway-error-msg-expiration' ), |
278 | | - 'cvv' => wfMsg( 'globalcollect_gateway-error-msg-cvv' ), |
| 268 | + 'amount' => wfMsg( 'payflowpro_gateway-error-msg-amount' ), |
| 269 | + 'emailAdd' => wfMsg( 'payflowpro_gateway-error-msg-emailAdd' ), |
| 270 | + 'fname' => wfMsg( 'payflowpro_gateway-error-msg-fname' ), |
| 271 | + 'lname' => wfMsg( 'payflowpro_gateway-error-msg-lname' ), |
| 272 | + 'street' => wfMsg( 'payflowpro_gateway-error-msg-street' ), |
| 273 | + 'city' => wfMsg( 'payflowpro_gateway-error-msg-city' ), |
| 274 | + 'state' => wfMsg( 'payflowpro_gateway-error-msg-state' ), |
| 275 | + 'zip' => wfMsg( 'payflowpro_gateway-error-msg-zip' ), |
| 276 | + 'card_num' => wfMsg( 'payflowpro_gateway-error-msg-card_num' ), |
| 277 | + 'expiration' => wfMsg( 'payflowpro_gateway-error-msg-expiration' ), |
| 278 | + 'cvv' => wfMsg( 'payflowpro_gateway-error-msg-cvv' ), |
279 | 279 | ); |
280 | 280 | |
281 | 281 | // find all empty fields and create message |
— | — | @@ -282,7 +282,7 @@ |
283 | 283 | if ( $value == '' || ($key == 'state' && $value == 'YY' )) { |
284 | 284 | // ignore fields that are not required |
285 | 285 | if ( isset( $msg[$key] ) ) { |
286 | | - $error[$key] = "**" . wfMsg( 'globalcollect_gateway-error-msg', $msg[$key] ) . "**<br />"; |
| 286 | + $error[$key] = "**" . wfMsg( 'payflowpro_gateway-error-msg', $msg[$key] ) . "**<br />"; |
287 | 287 | $error_result = '1'; |
288 | 288 | } |
289 | 289 | } |
— | — | @@ -292,7 +292,7 @@ |
293 | 293 | if ( !preg_match( '/^\d+(\.(\d+)?)?$/', $data[ 'amount' ] ) || |
294 | 294 | ( (float) $this->convert_to_usd( $data[ 'currency' ], $data[ 'amount' ] ) < (float) $wgPayflowProGatewayPriceFloor || |
295 | 295 | (float) $this->convert_to_usd( $data[ 'currency' ], $data[ 'amount' ] ) > (float) $wgPayflowProGatewayPriceCeiling ) ) { |
296 | | - $error['invalidamount'] = wfMsg( 'globalcollect_gateway-error-msg-invalid-amount' ); |
| 296 | + $error['invalidamount'] = wfMsg( 'payflowpro_gateway-error-msg-invalid-amount' ); |
297 | 297 | $error_result = '1'; |
298 | 298 | } |
299 | 299 | |
— | — | @@ -301,7 +301,7 @@ |
302 | 302 | |
303 | 303 | // create error message (supercedes empty field message) |
304 | 304 | if ( !$isEmail ) { |
305 | | - $error['emailAdd'] = wfMsg( 'globalcollect_gateway-error-msg-email' ); |
| 305 | + $error['emailAdd'] = wfMsg( 'payflowpro_gateway-error-msg-email' ); |
306 | 306 | $error_result = '1'; |
307 | 307 | } |
308 | 308 | |
— | — | @@ -317,7 +317,7 @@ |
318 | 318 | } else { // an invalid credit card number was entered |
319 | 319 | //TODO: Make sure this is uncommented when you commit for reals! |
320 | 320 | //$error_result = '1'; |
321 | | - //$error[ 'card_num' ] = wfMsg( 'globalcollect_gateway-error-msg-card-num' ); |
| 321 | + //$error[ 'card_num' ] = wfMsg( 'payflowpro_gateway-error-msg-card-num' ); |
322 | 322 | } |
323 | 323 | |
324 | 324 | return $error_result; |