Index: trunk/extensions/ContributionTracking/ContributionTracking_body.php |
— | — | @@ -35,7 +35,7 @@ |
36 | 36 | 'utm_source' => $wgRequest->getText('utm_source', null), |
37 | 37 | 'utm_medium' => $wgRequest->getText('utm_medium', null), |
38 | 38 | 'utm_campaign' => $wgRequest->getText('utm_campaign', null), |
39 | | - 'optout' => ($wgRequest->getCheck('email', 0) ? 0 : 1), |
| 39 | + 'optout' => ($wgRequest->getCheck('email-opt', 0) ? 0 : 1), |
40 | 40 | 'language' => $wgRequest->getText('language', null), |
41 | 41 | 'ts' => $ts, |
42 | 42 | ); |
— | — | @@ -79,6 +79,11 @@ |
80 | 80 | $repost['return'] = $returnto; |
81 | 81 | |
82 | 82 | $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 ); |
83 | 88 | } |
84 | 89 | else if ( $gateway == 'moneybookers' ) { |
85 | 90 | $action = 'https://www.moneybookers.com/app/payment.pl'; |