http://www.mediawiki.org/wiki/Special:Code/MediaWiki/70183
Revision: 70183
Author: awjrichards
Date: 2010-07-29 23:59:24 +0000 (Thu, 29 Jul 2010)
Log Message:
-----------
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:
trunk/extensions/DonationInterface/paypal_gateway/IPN/PaypalIPNListener.php
===================================================================
--- trunk/extensions/DonationInterface/paypal_gateway/IPN/PaypalIPNListener.php
2010-07-29 23:53:27 UTC (rev 70182)
+++ trunk/extensions/DonationInterface/paypal_gateway/IPN/PaypalIPNListener.php
2010-07-29 23:59:24 UTC (rev 70183)
@@ -264,8 +264,13 @@
$contribution['street_address'] = $split[0];
$contribution['supplemental_address_1'] = $split[1];
- $contribution['city'] = $post_data['address_city'];
- $contribution['original_currency'] = $post_data['mc_currency'];
+ $contribution['city'] = $post_data['address_city'];
+ $contribution['state_province'] = $post_data['address_state'];
+ $contribution['country'] = $post_data['address_country_code'];
+ $contribution['postal_code'] = $post_data['address_zip'];
+
+ $contribution['gateway_txn_id'] = $post_data['txn_id'];
+ $contribution['original_currency'] = $post_data['mc_currency'];
$contribution['original_gross'] = $post_data['mc_gross'];
$contribution['fee'] = $post_data['mc_fee'];
$contribution['gross'] = $post_data['mc_gross'];
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs