Index: trunk/extensions/DonationInterface/payflowpro_gateway/form_placeholders.js |
— | — | @@ -52,4 +52,4 @@ |
53 | 53 | return true; |
54 | 54 | } |
55 | 55 | } |
56 | | -//]]> |
\ No newline at end of file |
| 56 | +//]]> |
Index: trunk/extensions/DonationInterface/gateway_forms/TwoStepTwoColumnLetter3.php |
— | — | @@ -17,12 +17,34 @@ |
18 | 18 | * |
19 | 19 | * @see parent::loadResources() |
20 | 20 | */ |
21 | | - public function loadResources() { |
| 21 | + /*public function loadResources() { |
22 | 22 | $this->loadValidateJs(); |
23 | | - } |
| 23 | + }*/ |
24 | 24 | |
25 | 25 | public function loadPlaceholders() { |
26 | 26 | global $wgOut; |
| 27 | + |
| 28 | + |
| 29 | + $scriptVars = array( |
| 30 | + 'payflowproGatewayErrorMsgJs' => wfMsg( 'donate_interface-error-msg-js' ), |
| 31 | + 'payflowproGatewayErrorMsgEmail' => wfMsg( 'donate_interface-error-msg-email' ), |
| 32 | + 'payflowproGatewayErrorMsgAmount' => wfMsg( 'donate_interface-error-msg-amount' ), |
| 33 | + 'payflowproGatewayErrorMsgEmailAdd' => wfMsg( 'donate_interface-error-msg-emailAdd' ), |
| 34 | + 'payflowproGatewayErrorMsgFname' => wfMsg( 'donate_interface-error-msg-fname' ), |
| 35 | + 'payflowproGatewayErrorMsgLname' => wfMsg( 'donate_interface-error-msg-lname' ), |
| 36 | + 'payflowproGatewayErrorMsgStreet' => wfMsg( 'donate_interface-error-msg-street' ), |
| 37 | + 'payflowproGatewayErrorMsgCity' => wfMsg( 'donate_interface-error-msg-city' ), |
| 38 | + 'payflowproGatewayErrorMsgState' => wfMsg( 'donate_interface-error-msg-state' ), |
| 39 | + 'payflowproGatewayErrorMsgZip' => wfMsg( 'donate_interface-error-msg-zip' ), |
| 40 | + 'payflowproGatewayErrorMsgCountry' => wfMsg( 'donate_interface-error-msg-country' ), |
| 41 | + 'payflowproGatewayErrorMsgCardNum' => wfMsg( 'donate_interface-error-msg-card_num' ), |
| 42 | + 'payflowproGatewayErrorMsgExpiration' => wfMsg( 'donate_interface-error-msg-expiration' ), |
| 43 | + 'payflowproGatewayErrorMsgCvv' => wfMsg( 'donate_interface-error-msg-cvv' ), |
| 44 | + 'payflowproGatewayCVVExplain' => wfMsg( 'donate_interface-cvv-explain' ), |
| 45 | + ); |
| 46 | + |
| 47 | + $wgOut->addScript( Skin::makeVariablesScript( $scriptVars ) ); |
| 48 | + |
27 | 49 | // form placeholder values |
28 | 50 | $first = wfMsg( 'donate_interface-donor-fname' ); |
29 | 51 | $last = wfMsg( 'donate_interface-donor-lname' ); |
— | — | @@ -161,7 +183,7 @@ |
162 | 184 | $form .= "<p class='creditcard-error-msg'>" . $this->form_errors['retryMsg'] . "</p>"; |
163 | 185 | $form .= Xml::openElement( 'form', array( 'name' => 'payment', 'method' => 'post', 'action' => $this->getNoCacheAction(), 'onsubmit' => 'return formCheck(this)', 'autocomplete' => 'off' ) ); |
164 | 186 | |
165 | | - $form .= Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-personal-info' ) ); |
| 187 | + $form .= Xml::openElement( 'div', array( 'id' => 'donate_interface-personal-info' ) ); |
166 | 188 | $form .= Xml::openElement( 'table', array( 'id' => 'payflow-table-donor' ) ); |
167 | 189 | $form .= $this->generateBillingFields(); |
168 | 190 | |