Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoColumnLetter.php |
— | — | @@ -90,6 +90,7 @@ |
91 | 91 | |
92 | 92 | protected function generateBillingFields() { |
93 | 93 | global $wgScriptPath, $wgPayflowGatewayTest; |
| 94 | + $scriptPath = "$wgScriptPath/extensions/DonationInterface/payflowpro_gateway"; |
94 | 95 | $card_num = ( $wgPayflowGatewayTest ) ? $this->form_data[ 'card_num' ] : ''; |
95 | 96 | $cvv = ( $wgPayflowGatewayTest ) ? $this->form_data[ 'cvv' ] : ''; |
96 | 97 | $form = ''; |
— | — | @@ -157,6 +158,16 @@ |
158 | 159 | ' ' . $this->generateCurrencyDropdown() . '</td>'; |
159 | 160 | $form .= '</tr>'; |
160 | 161 | |
| 162 | + // PayPal button |
| 163 | + $form .= '<tr>'; |
| 164 | + $form .= '<td class="paypal-button" colspan="2">'; |
| 165 | + $form .= Xml::tags( 'div', |
| 166 | + array(), |
| 167 | + '<img src="'.$scriptPath.'/donate-with-paypal.gif"/>' |
| 168 | + ); |
| 169 | + $form .= '</td>'; |
| 170 | + $form .= '</tr>'; |
| 171 | + |
161 | 172 | // card logos |
162 | 173 | $form .= '<tr>'; |
163 | 174 | $form .= '<td />'; |