r96037 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r96036‎ | r96037 | r96038 >
Date:20:35, 1 September 2011
Author:awjrichards
Status:ok
Tags:
Comment:
MFT r95917
Modified paths:
  • /branches/wmf/1.17wmf1/extensions/ContributionTracking/ContributionTracking.processor.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/extensions/ContributionTracking/ContributionTracking.processor.php
@@ -253,7 +253,14 @@
254254 'amount_given' => '',
255255 'contribution_tracking_id' => '',
256256 'notify_url' => '',
257 - 'item_name' => ''
 257+ 'item_name' => '',
 258+ 'address1' => '',
 259+ 'city' => '',
 260+ 'state' => '',
 261+ 'zip' => '',
 262+ 'country' => 'US',
 263+ 'address_override' => '0'
 264+
258265 );
259266 }
260267
@@ -329,7 +336,7 @@
330337 $repost['fields']['return'] = $returnto;
331338 $repost['fields']['currency_code'] = $input['currency_code'];
332339
333 - // additional fields to pass to PayPal from single-step credit card form
 340+ // additional fields to pass to PayPal from single-step credit card form and 1st step with address fields
334341 if ( array_key_exists( 'fname', $input ) && !empty( $input['fname'] ) ) {
335342 $repost['fields']['first_name'] = $input['fname'];
336343 }
@@ -340,6 +347,32 @@
341348 $repost['fields']['email'] = $input['email'];
342349 }
343350
 351+ if ( array_key_exists( 'address1', $input ) && !empty( $input['address1'] ) ) {
 352+ $repost['fields']['address1'] = $input['address1'];
 353+ }
 354+
 355+ if ( array_key_exists( 'city', $input ) && !empty( $input['city'] ) ) {
 356+ $repost['fields']['city'] = $input['city'];
 357+ }
 358+
 359+ if ( array_key_exists( 'state', $input ) && !empty( $input['state'] ) ) {
 360+ $repost['fields']['state'] = $input['state'];
 361+ }
 362+
 363+ if ( array_key_exists( 'zip', $input ) && !empty( $input['zip'] ) ) {
 364+ $repost['fields']['zip'] = $input['zip'];
 365+ }
 366+
 367+
 368+ if ( array_key_exists( 'country', $input ) && !empty( $input['country'] ) ) {
 369+ $repost['fields']['country'] = $input['country'];
 370+ }
 371+
 372+ if ( array_key_exists( 'address_override', $input ) && !empty( $input['address_override'] ) ) {
 373+ $repost['fields']['address_override'] = $input['address_override'];
 374+ }
 375+
 376+
344377 // if this is a recurring donation, we have add'l fields to send to paypal
345378 if ( $input['recurring_paypal'] && $input['recurring_paypal'] != 0 ) {
346379
Property changes on: branches/wmf/1.17wmf1/extensions/ContributionTracking/ContributionTracking.processor.php
___________________________________________________________________
Added: svn:mergeinfo
347380 Merged /trunk/extensions/ContributionReporting/ContributionTracking.processor.php:r74440-74491
348381 Merged /branches/wmf-deployment/extensions/ContributionTracking/ContributionTracking.processor.php:r60970
349382 Merged /branches/wmf/1.16wmf4/extensions/ContributionTracking/ContributionTracking.processor.php:r67177,69199,76243,77266
350383 Merged /trunk/extensions/ContributionTracking/ContributionTracking.processor.php:r64690-95543,95664-96036
351384 Merged /trunk/phase3/extensions/ContributionTracking/ContributionTracking.processor.php:r63545-63546,63549,63643,63764,63897-63901,64113,64509,65387,65391,65555,65590,65650,65816,77555,77558-77560,77563-77565,77573

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r95917adding address_override for paypal if wanted and adding new fields to process...jamesur23:11, 31 August 2011

Status & tagging log