r74384 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r74383‎ | r74384 | r74385 >
Date:20:19, 6 October 2010
Author:awjrichards
Status:deferred
Tags:
Comment:
Updated form field pointing to optout option; Added first name, last name, email fields to optionally be passed to PayPal
Modified paths:
  • /trunk/extensions/ContributionTracking/ContributionTracking_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ContributionTracking/ContributionTracking_body.php
@@ -35,7 +35,7 @@
3636 'utm_source' => $wgRequest->getText('utm_source', null),
3737 'utm_medium' => $wgRequest->getText('utm_medium', null),
3838 'utm_campaign' => $wgRequest->getText('utm_campaign', null),
39 - 'optout' => ($wgRequest->getCheck('email', 0) ? 0 : 1),
 39+ 'optout' => ($wgRequest->getCheck('email-opt', 0) ? 0 : 1),
4040 'language' => $wgRequest->getText('language', null),
4141 'ts' => $ts,
4242 );
@@ -79,6 +79,11 @@
8080 $repost['return'] = $returnto;
8181
8282 $repost['currency_code'] = $wgRequest->getText( 'currency_code', 'USD' );
 83+
 84+ // additional fields to pass to PayPal from single-step credit card form
 85+ $repost[ 'first_name' ] = $wgRequest->getText( 'fname', null );
 86+ $repost[ 'last_name' ] = $wgRequest->getText( 'lname', null );
 87+ $repost[ 'email' ] = $wgRequest->getText( 'email', null );
8388 }
8489 else if ( $gateway == 'moneybookers' ) {
8590 $action = 'https://www.moneybookers.com/app/payment.pl';

Status & tagging log