r74391 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r74390‎ | r74391 | r74392 >
Date:21:14, 6 October 2010
Author:kaldari
Status:deferred
Tags:
Comment:
paypal button
Modified paths:
  • /trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoColumnLetter.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoColumnLetter.php
@@ -90,6 +90,7 @@
9191
9292 protected function generateBillingFields() {
9393 global $wgScriptPath, $wgPayflowGatewayTest;
 94+ $scriptPath = "$wgScriptPath/extensions/DonationInterface/payflowpro_gateway";
9495 $card_num = ( $wgPayflowGatewayTest ) ? $this->form_data[ 'card_num' ] : '';
9596 $cvv = ( $wgPayflowGatewayTest ) ? $this->form_data[ 'cvv' ] : '';
9697 $form = '';
@@ -157,6 +158,16 @@
158159 ' ' . $this->generateCurrencyDropdown() . '</td>';
159160 $form .= '</tr>';
160161
 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+
161172 // card logos
162173 $form .= '<tr>';
163174 $form .= '<td />';

Status & tagging log