r70183 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70182‎ | r70183 | r70184 >
Date:23:59, 29 July 2010
Author:awjrichards
Status:deferred
Tags:
Comment:
Updated the Paypal IPN Listener to include a user's state, zipcode, country, etc.
Modified paths:
  • /trunk/extensions/DonationInterface/paypal_gateway/IPN/PaypalIPNListener.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/paypal_gateway/IPN/PaypalIPNListener.php
@@ -264,8 +264,13 @@
265265
266266 $contribution['street_address'] = $split[0];
267267 $contribution['supplemental_address_1'] = $split[1];
268 - $contribution['city'] = $post_data['address_city'];
269 - $contribution['original_currency'] = $post_data['mc_currency'];
 268+ $contribution['city'] = $post_data['address_city'];
 269+ $contribution['state_province'] = $post_data['address_state'];
 270+ $contribution['country'] = $post_data['address_country_code'];
 271+ $contribution['postal_code'] = $post_data['address_zip'];
 272+
 273+ $contribution['gateway_txn_id'] = $post_data['txn_id'];
 274+ $contribution['original_currency'] = $post_data['mc_currency'];
270275 $contribution['original_gross'] = $post_data['mc_gross'];
271276 $contribution['fee'] = $post_data['mc_fee'];
272277 $contribution['gross'] = $post_data['mc_gross'];

Status & tagging log