Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

1.3.13 PayPal Express fixes for taxes.

  • Loading branch information...
commit 36f1d1a778b823277fb857d9bafbf654c892566f 1 parent f4054ce
@strangerstudios authored
Showing with 20 additions and 676 deletions.
  1. +18 −13 classes/class.memberorder.php
  2. +0 −663 logs/ipn.txt
  3. +2 −0  readme.txt
View
31 classes/class.memberorder.php
@@ -171,22 +171,27 @@ function getTaxForPrice($price)
//get options
$tax_state = pmpro_getOption("tax_state");
$tax_rate = pmpro_getOption("tax_rate");
-
+
+ //default
+ $tax = 0;
+
//calculate tax
if($tax_state && $tax_rate)
{
//we have values, is this order in the tax state?
if(trim(strtoupper($this->billing->state)) == trim(strtoupper($tax_state)))
- {
- //set values array for filter
- $values = array("price" => $price, "tax_state" => $tax_state, "tax_rate" => $tax_rate, "billing_state" => $this->billing->state, "billing_city" => $this->billing_city, "billing_zip" => $this->billing->zip, "billing_country" => $this->billing->country);
-
+ {
//return value, pass through filter
- return apply_filters("pmpro_tax", round((float)$price * (float)$tax_rate, 2), $values);
+ $tax = round((float)$price * (float)$tax_rate, 2);
}
}
- return 0;
+ //set values array for filter
+ $values = array("price" => $price, "tax_state" => $tax_state, "tax_rate" => $tax_rate, "billing_state" => $this->billing->state, "billing_city" => $this->billing_city, "billing_zip" => $this->billing->zip, "billing_country" => $this->billing->country);
+
+ //filter
+ $tax = apply_filters("pmpro_tax", $tax, $values, $this);
+ return $tax;
}
function getTax($force = false)
@@ -997,7 +1002,7 @@ function setExpressCheckout()
//paypal profile stuff
$nvpStr = "";
- $nvpStr .="&AMT=" . $initial_payment . "&TAXAMT=" . $amount_tax . "&CURRENCYCODE=" . $pmpro_currency . "&PROFILESTARTDATE=" . $this->ProfileStartDate;
+ $nvpStr .="&AMT=" . $initial_payment . "&CURRENCYCODE=" . $pmpro_currency . "&PROFILESTARTDATE=" . $this->ProfileStartDate;
$nvpStr .= "&BILLINGPERIOD=" . $this->BillingPeriod . "&BILLINGFREQUENCY=" . $this->BillingFrequency . "&AUTOBILLAMT=AddToNextBilling";
$nvpStr .= "&DESC=" . $amount;
$nvpStr .= "&NOTIFYURL=" . urlencode(PMPRO_URL . "/services/ipnhandler.php");
@@ -1036,8 +1041,8 @@ function setExpressCheckout()
}
$nvpStr .= "&CANCELURL=" . urlencode(pmpro_url("levels"));
-
- $this->httpParsedResponseAr = $this->PPHttpPost('SetExpressCheckout', $nvpStr);
+
+ $this->httpParsedResponseAr = $this->PPHttpPost('SetExpressCheckout', $nvpStr);
if("SUCCESS" == strtoupper($this->httpParsedResponseAr["ACK"]) || "SUCCESSWITHWARNING" == strtoupper($this->httpParsedResponseAr["ACK"])) {
$this->status = "token";
@@ -1117,7 +1122,7 @@ function chargeWithPayPalExpress()
$nvpStr = "";
if($this->Token)
$nvpStr .= "&TOKEN=" . $this->Token;
- $nvpStr .="&AMT=" . $this->InitialPayment . "&TAXAMT=" . $amount_tax . "&CURRENCYCODE=" . $pmpro_currency . "&PROFILESTARTDATE=" . $this->ProfileStartDate;
+ $nvpStr .="&AMT=" . $amount . "&CURRENCYCODE=" . $pmpro_currency . "&PROFILESTARTDATE=" . $this->ProfileStartDate;
$nvpStr .= "&BILLINGPERIOD=" . $this->BillingPeriod . "&BILLINGFREQUENCY=" . $this->BillingFrequency . "&AUTOBILLAMT=AddToNextBilling";
$nvpStr .= "&DESC=" . $amount;
$nvpStr .= "&NOTIFYURL=" . urlencode(PMPRO_URL . "/services/ipnhandler.php");
@@ -1168,7 +1173,7 @@ function processWithPayPalExpress()
$nvpStr = "";
if($this->Token)
$nvpStr .= "&TOKEN=" . $this->Token;
- $nvpStr .="&INITAMT=" . $initial_payment . "&AMT=" . $this->PaymentAmount . "&TAXAMT=" . $amount_tax . "&CURRENCYCODE=" . $pmpro_currency . "&PROFILESTARTDATE=" . $this->ProfileStartDate;
+ $nvpStr .="&INITAMT=" . $initial_payment . "&AMT=" . $this->PaymentAmount . "&CURRENCYCODE=" . $pmpro_currency . "&PROFILESTARTDATE=" . $this->ProfileStartDate;
$nvpStr .= "&BILLINGPERIOD=" . $this->BillingPeriod . "&BILLINGFREQUENCY=" . $this->BillingFrequency . "&AUTOBILLAMT=AddToNextBilling";
$nvpStr .= "&NOTIFYURL=" . urlencode(PMPRO_URL . "/services/ipnhandler.php");
$nvpStr .= "&DESC=" . urlencode($this->membership_level->name . " at " . get_bloginfo("name"));
@@ -1189,7 +1194,7 @@ function processWithPayPalExpress()
if($this->TrialBillingCycles)
$nvpStr .= "&TRIALTOTALBILLINGCYCLES=" . $this->TrialBillingCycles;
- $this->nvpStr = $nvpStr;
+ $this->nvpStr = $nvpStr;
$this->httpParsedResponseAr = $this->PPHttpPost('CreateRecurringPaymentsProfile', $nvpStr);
View
663 logs/ipn.txt
@@ -1,664 +1 @@
-Logged On: 12/03/2011 19:42:11
- Array
-(
- [mc_gross] => 1.00
- [invoice] => 49764CD815
- [auth_exp] => 11:34:41 Jan 01, 2012 PST
- [protection_eligibility] => Ineligible
- [payer_id] => YWB52LV865K4G
- [tax] => 0.00
- [payment_date] => 11:34:41 Dec 03, 2011 PST
- [payment_status] => Pending
- [charset] => windows-1252
- [first_name] => The
- [transaction_entity] => auth
- [notify_version] => 3.4
- [custom] =>
- [payer_status] => unverified
- [business] => billin_1203902703_biz@strangerstudios.com
- [quantity] => 1
- [verify_sign] => AcG3RcqLywWNUE8R.SCRdEpzekjCA4-CcTCwuo-tDTbTcocMdVECwnLM
- [payer_email] => jason@strangerstudios.com
- [parent_txn_id] =>
- [txn_id] => 07Y70031NU625171K
- [payment_type] => instant
- [remaining_settle] => 10
- [auth_id] => 07Y70031NU625171K
- [last_name] => Admin
- [receiver_email] => billin_1203902703_biz@strangerstudios.com
- [auth_amount] => 1.00
- [receiver_id] => RVFCZ6PWTFHB8
- [pending_reason] => authorization
- [txn_type] => web_accept
- [item_name] =>
- [mc_currency] => USD
- [item_number] =>
- [residence_country] => US
- [test_ipn] => 1
- [receipt_id] => 3960-8289-1197-8142
- [handling_amount] => 0.00
- [transaction_subject] =>
- [payment_gross] => 1.00
- [auth_status] => Pending
- [shipping] => 0.00
- [ipn_track_id] => EpJVLtB62dRKh5regt4xhw
-)
- Array
-(
- [headers] => Array
- (
- [date] => Sat, 03 Dec 2011 19:34:48 GMT
- [server] => Apache
- [x-frame-options] => SAMEORIGIN
- [set-cookie] => Array
- (
- [0] => c9MWDuvPtT9GIMyPc3jwol1VSlO=lMm2bKhLqvkjGPysPK1mt9ao19bGj9KxZPguQvOHalOa-rkuvtr7byH8KEkrrDVUrQQeV_dbdiGTCOJGuqxG2ooao6fUPPkR1msXIfHf2_pUmh7IIb_Q08PiFGkhVa3m5Mljb0%7c7lqmJJ48zb2BdlbHGr_FTakiFE2SAYfVpgNkFgtWgTWaiGEo4SXGvZFFncfMoAZX6FIoAW%7cs_MfoGo8jGJF7MbyMYtA2X2KDvpDtEcfIXkpSH-UIXrBWiEftWW5rm2rsLDZD8PkKyT_XW%7c1322940889; domain=.paypal.com; path=/; Secure; HttpOnly
- [1] => cookie_check=yes; expires=Tue, 30-Nov-2021 19:34:49 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
- [2] => navcmd=_notify-validate; domain=.paypal.com; path=/; Secure; HttpOnly
- [3] => navlns=0.0; expires=Fri, 28-Nov-2031 19:34:49 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
- [4] => Apache=10.72.109.11.1322940888414594; path=/; expires=Mon, 25-Nov-41 19:34:48 GMT
- )
-
- [connection] => close
- [content-type] => text/html; charset=UTF-8
- )
-
- [body] => VERIFIED
- [response] => Array
- (
- [code] => 200
- [message] => OK
- )
-
- [cookies] => Array
- (
- [0] => WP_Http_Cookie Object
- (
- [name] => c9MWDuvPtT9GIMyPc3jwol1VSlO
- [value] => lMm2bKhLqvkjGPysPK1mt9ao19bGj9KxZPguQvOHalOa-rkuvtr7byH8KEkrrDVUrQQeV_dbdiGTCOJGuqxG2ooao6fUPPkR1msXIfHf2_pUmh7IIb_Q08PiFGkhVa3m5Mljb0|7lqmJJ48zb2BdlbHGr_FTakiFE2SAYfVpgNkFgtWgTWaiGEo4SXGvZFFncfMoAZX6FIoAW|s_MfoGo8jGJF7MbyMYtA2X2KDvpDtEcfIXkpSH-UIXrBWiEftWW5rm2rsLDZD8PkKyT_XW|1322940889
- [expires] =>
- [path] => /
- [domain] => .paypal.com
- [secure] =>
- [httponly] =>
- )
-
- [1] => WP_Http_Cookie Object
- (
- [name] => cookie_check
- [value] => yes
- [expires] => 1638300889
- [path] => /
- [domain] => .paypal.com
- [secure] =>
- [httponly] =>
- )
-
- [2] => WP_Http_Cookie Object
- (
- [name] => navcmd
- [value] => _notify-validate
- [expires] =>
- [path] => /
- [domain] => .paypal.com
- [secure] =>
- [httponly] =>
- )
-
- [3] => WP_Http_Cookie Object
- (
- [name] => navlns
- [value] => 0.0
- [expires] => 1953660889
- [path] => /
- [domain] => .paypal.com
- [secure] =>
- [httponly] =>
- )
-
- [4] => WP_Http_Cookie Object
- (
- [name] => Apache
- [value] => 10.72.109.11.1322940888414594
- [expires] => 2269020888
- [path] => /
- [domain] =>
- )
-
- )
-
- [filename] =>
-)
-
- FP!
- VERIFIED
- No recurring payment id.
-
--------------
-Logged On: 12/03/2011 19:42:12
- Array
-(
- [mc_gross] => 1.00
- [invoice] => 49764CD815
- [auth_exp] => 11:34:41 Jan 01, 2012 PST
- [protection_eligibility] => Ineligible
- [payer_id] => YWB52LV865K4G
- [tax] => 0.00
- [payment_date] => 11:34:41 Dec 03, 2011 PST
- [payment_status] => Voided
- [charset] => windows-1252
- [first_name] => The
- [transaction_entity] => auth
- [notify_version] => 3.4
- [custom] =>
- [payer_status] => unverified
- [business] => billin_1203902703_biz@strangerstudios.com
- [quantity] => 1
- [verify_sign] => AiPC9BjkCyDFQXbSkoZcgqH3hpacAm9PLOTtynWFqAKtSwjP7D-PVExW
- [payer_email] => jason@strangerstudios.com
- [parent_txn_id] =>
- [txn_id] => 07Y70031NU625171K
- [payment_type] => instant
- [remaining_settle] => 0
- [auth_id] => 07Y70031NU625171K
- [last_name] => Admin
- [receiver_email] => billin_1203902703_biz@strangerstudios.com
- [auth_amount] => 1.00
- [receiver_id] => RVFCZ6PWTFHB8
- [txn_type] => web_accept
- [item_name] =>
- [mc_currency] => USD
- [item_number] =>
- [residence_country] => US
- [test_ipn] => 1
- [receipt_id] => 3960-8289-1197-8142
- [handling_amount] => 0.00
- [transaction_subject] =>
- [payment_gross] => 1.00
- [auth_status] => Voided
- [shipping] => 0.00
-)
-
- Array
-(
- [headers] => Array
- (
- [date] => Sat, 03 Dec 2011 19:34:49 GMT
- [server] => Apache
- [x-frame-options] => SAMEORIGIN
- [set-cookie] => Array
- (
- [0] => c9MWDuvPtT9GIMyPc3jwol1VSlO=lmslPcU3aevZd1oTXjH6cEQaNkXWAnq2gKy0BNihCPOcq9DIMFb_FSFzfkdt3zovyvx06QpUaBaicO_qhnXl0CiHUssGHTdRQ3pyWchNdHya6wgPdbsg9DTYOUptlpzm4xoTQG%7c1nnKNgOY0oR-VeANvqitfWRPlt5Cfb3zotryoIw4oiDvxjUd_UTa1bwVYfBaMdKI89AMTW%7cBDsIW433UHy5rpOE7C-ThdIGrpN5nRaWviyRLgiBp3IJjYyxt-MgjnDT18KKved1IdPQAG%7c1322940889; domain=.paypal.com; path=/; Secure; HttpOnly
- [1] => cookie_check=yes; expires=Tue, 30-Nov-2021 19:34:49 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
- [2] => navcmd=_notify-validate; domain=.paypal.com; path=/; Secure; HttpOnly
- [3] => navlns=0.0; expires=Fri, 28-Nov-2031 19:34:49 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
- [4] => Apache=10.72.109.11.1322940889329709; path=/; expires=Mon, 25-Nov-41 19:34:49 GMT
- )
-
- [connection] => close
- [content-type] => text/html; charset=UTF-8
- )
-
- [body] => VERIFIED
- [response] => Array
- (
- [code] => 200
- [message] => OK
- )
-
- [cookies] => Array
- (
- [0] => WP_Http_Cookie Object
- (
- [name] => c9MWDuvPtT9GIMyPc3jwol1VSlO
- [value] => lmslPcU3aevZd1oTXjH6cEQaNkXWAnq2gKy0BNihCPOcq9DIMFb_FSFzfkdt3zovyvx06QpUaBaicO_qhnXl0CiHUssGHTdRQ3pyWchNdHya6wgPdbsg9DTYOUptlpzm4xoTQG|1nnKNgOY0oR-VeANvqitfWRPlt5Cfb3zotryoIw4oiDvxjUd_UTa1bwVYfBaMdKI89AMTW|BDsIW433UHy5rpOE7C-ThdIGrpN5nRaWviyRLgiBp3IJjYyxt-MgjnDT18KKved1IdPQAG|1322940889
- [expires] =>
- [path] => /
- [domain] => .paypal.com
- [secure] =>
- [httponly] =>
- )
-
- [1] => WP_Http_Cookie Object
- (
- [name] => cookie_check
- [value] => yes
- [expires] => 1638300889
- [path] => /
- [domain] => .paypal.com
- [secure] =>
- [httponly] =>
- )
-
- [2] => WP_Http_Cookie Object
- (
- [name] => navcmd
- [value] => _notify-validate
- [expires] =>
- [path] => /
- [domain] => .paypal.com
- [secure] =>
- [httponly] =>
- )
-
- [3] => WP_Http_Cookie Object
- (
- [name] => navlns
- [value] => 0.0
- [expires] => 1953660889
- [path] => /
- [domain] => .paypal.com
- [secure] =>
- [httponly] =>
- )
-
- [4] => WP_Http_Cookie Object
- (
- [name] => Apache
- [value] => 10.72.109.11.1322940889329709
- [expires] => 2269020889
- [path] => /
- [domain] =>
- )
-
- )
-
- [filename] =>
-)
-
- FP!
- VERIFIED
- No recurring payment id.
-
--------------
-Logged On: 12/10/2011 17:40:08
- Array
-(
- [mc_gross] => 100.00
- [invoice] => F9B18A9AC0
- [protection_eligibility] => Ineligible
- [payer_id] => YWB52LV865K4G
- [tax] => 0.00
- [payment_date] => 09:32:32 Dec 10, 2011 PST
- [payment_status] => Completed
- [charset] => windows-1252
- [first_name] => The
- [mc_fee] => 3.25
- [notify_version] => 3.4
- [custom] =>
- [payer_status] => unverified
- [business] => billin_1203902703_biz@strangerstudios.com
- [quantity] => 1
- [verify_sign] => AtSrfEYczATs0HQ0toPIJQ7DZLB7AE5OCmnO9n00l0p-PYUjN10KfEKX
- [payer_email] => jason@strangerstudios.com
- [txn_id] => 0LY67831HR672605L
- [payment_type] => instant
- [last_name] => Admin
- [receiver_email] => billin_1203902703_biz@strangerstudios.com
- [payment_fee] => 3.25
- [receiver_id] => RVFCZ6PWTFHB8
- [txn_type] => web_accept
- [item_name] =>
- [mc_currency] => USD
- [item_number] =>
- [residence_country] => US
- [test_ipn] => 1
- [receipt_id] => 3357-4936-9396-3001
- [handling_amount] => 0.00
- [transaction_subject] =>
- [payment_gross] => 100.00
- [shipping] => 0.00
- [ipn_track_id] => pcPlteKZPwT3YFRfy3poVw
-)
-
- Array
-(
- [headers] => Array
- (
- [date] => Sat, 10 Dec 2011 17:32:39 GMT
- [server] => Apache
- [x-frame-options] => SAMEORIGIN
- [set-cookie] => Array
- (
- [0] => c9MWDuvPtT9GIMyPc3jwol1VSlO=W_cRPIk9ktNFomKaT0Q5rqFGZEnPwWGxGpLNLcBxjnR4N0cOF8Nq3t2JulS_EX9Mf-PvsKeHJnq1yVTCL9AKc5yjtUqIZR6G2EuQXS1MROo_V4kxYI59Hb_ZL1zc6Fc4q7BsOG%7cUHV325nhcv9tBsHkzVM-A3_-808yDbZdummmS11Pihv8_XLjoqYmo6S9XYqpMom1CJXa9m%7crA6aCOtiG5JVyMuzplDGBhcp3FgaBeey56mfAXMzAfI_jKhc6Hxwc2SXgkMEoPOFRDiiUW%7c1323538359; domain=.paypal.com; path=/; Secure; HttpOnly
- [1] => cookie_check=yes; expires=Tue, 07-Dec-2021 17:32:39 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
- [2] => navcmd=_notify-validate; domain=.paypal.com; path=/; Secure; HttpOnly
- [3] => navlns=0.0; expires=Fri, 05-Dec-2031 17:32:39 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
- [4] => Apache=10.72.109.11.1323538359193016; path=/; expires=Mon, 02-Dec-41 17:32:39 GMT
- )
-
- [connection] => close
- [content-type] => text/html; charset=UTF-8
- )
-
- [body] => VERIFIED
- [response] => Array
- (
- [code] => 200
- [message] => OK
- )
-
- [cookies] => Array
- (
- [0] => WP_Http_Cookie Object
- (
- [name] => c9MWDuvPtT9GIMyPc3jwol1VSlO
- [value] => W_cRPIk9ktNFomKaT0Q5rqFGZEnPwWGxGpLNLcBxjnR4N0cOF8Nq3t2JulS_EX9Mf-PvsKeHJnq1yVTCL9AKc5yjtUqIZR6G2EuQXS1MROo_V4kxYI59Hb_ZL1zc6Fc4q7BsOG|UHV325nhcv9tBsHkzVM-A3_-808yDbZdummmS11Pihv8_XLjoqYmo6S9XYqpMom1CJXa9m|rA6aCOtiG5JVyMuzplDGBhcp3FgaBeey56mfAXMzAfI_jKhc6Hxwc2SXgkMEoPOFRDiiUW|1323538359
- [expires] =>
- [path] => /
- [domain] => .paypal.com
- [secure] =>
- [httponly] =>
- )
-
- [1] => WP_Http_Cookie Object
- (
- [name] => cookie_check
- [value] => yes
- [expires] => 1638898359
- [path] => /
- [domain] => .paypal.com
- [secure] =>
- [httponly] =>
- )
-
- [2] => WP_Http_Cookie Object
- (
- [name] => navcmd
- [value] => _notify-validate
- [expires] =>
- [path] => /
- [domain] => .paypal.com
- [secure] =>
- [httponly] =>
- )
-
- [3] => WP_Http_Cookie Object
- (
- [name] => navlns
- [value] => 0.0
- [expires] => 1954258359
- [path] => /
- [domain] => .paypal.com
- [secure] =>
- [httponly] =>
- )
-
- [4] => WP_Http_Cookie Object
- (
- [name] => Apache
- [value] => 10.72.109.11.1323538359193016
- [expires] => 2269618359
- [path] => /
- [domain] =>
- )
-
- )
-
- [filename] =>
-)
-
- FP!
- VERIFIED
- No recurring payment id.
-
--------------
-Logged On: 02/01/2012 02:19:13
- Array
-(
- [transaction_subject] => Trial at Member Lite Theme0
- [payment_date] => 18:11:15 Jan 31, 2012 PST
- [txn_type] => express_checkout
- [last_name] => Coleman
- [residence_country] => US
- [item_name] => 1
- [payment_gross] => 1.00
- [mc_currency] => USD
- [payment_type] => instant
- [protection_eligibility] => Ineligible
- [verify_sign] => AQU0e5vuZCvSg-XJploSa.sGUDlpA6KrrJz7WUyrH155E03yuoVfSxZg
- [payer_status] => verified
- [test_ipn] => 1
- [tax] => 0.00
- [payer_email] => ideadude@gmail.com
- [txn_id] => 0CG94777WG505120N
- [quantity] => 1
- [receiver_email] => billin_1203902703_biz@strangerstudios.com
- [first_name] => Jason
- [payer_id] => 9KZCXT4TSSJC2
- [receiver_id] => RVFCZ6PWTFHB8
- [item_number] =>
- [handling_amount] => 0.00
- [payment_status] => Completed
- [payment_fee] => 0.33
- [mc_fee] => 0.33
- [shipping] => 0.00
- [mc_gross] => 1.00
- [custom] =>
- [charset] => windows-1252
- [notify_version] => 3.4
- [ipn_track_id] => baca89f5c95a5
-)
-
- Array
-(
- [headers] => Array
- (
- [date] => Wed, 01 Feb 2012 02:11:20 GMT
- [server] => Apache
- [x-frame-options] => SAMEORIGIN
- [set-cookie] => Array
- (
- [0] => c9MWDuvPtT9GIMyPc3jwol1VSlO=NyZ11gN8DYjXfCuzTJNkHTHjiRR4cWza11dhB-bpsAaVwI9VMNBTLi7oSezEsTQOGPTsC3w0BedJoqUMnzuvKCFzQYk9X4T6lRc7Nboppd2B7H2eYoqx3G5zIzVaLNyjoadWrG%7coSP5WtcBGq_JSFBWQy1DlL3iIc-0uHDKs1uGpwenV4y_ismXHzFtA5Z5zEUJv87Tzd-6AG%7cWvRFWzdh4NKGwmM_48pWPK4NKC_A-6O9b1fjWXNNaWjXDaLQBwy3I27ob1fNDWwyn20vvG%7c1328062280; domain=.paypal.com; path=/; Secure; HttpOnly
- [1] => cookie_check=yes; expires=Sat, 29-Jan-2022 02:11:20 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
- [2] => navcmd=_notify-validate; domain=.paypal.com; path=/; Secure; HttpOnly
- [3] => navlns=0.0; expires=Tue, 27-Jan-2032 02:11:20 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
- [4] => Apache=10.72.109.11.1328062280352579; path=/; expires=Fri, 24-Jan-42 02:11:20 GMT
- )
-
- [connection] => close
- [content-type] => text/html; charset=UTF-8
- )
-
- [body] => VERIFIED
- [response] => Array
- (
- [code] => 200
- [message] => OK
- )
-
- [cookies] => Array
- (
- [0] => WP_Http_Cookie Object
- (
- [name] => c9MWDuvPtT9GIMyPc3jwol1VSlO
- [value] => NyZ11gN8DYjXfCuzTJNkHTHjiRR4cWza11dhB-bpsAaVwI9VMNBTLi7oSezEsTQOGPTsC3w0BedJoqUMnzuvKCFzQYk9X4T6lRc7Nboppd2B7H2eYoqx3G5zIzVaLNyjoadWrG|oSP5WtcBGq_JSFBWQy1DlL3iIc-0uHDKs1uGpwenV4y_ismXHzFtA5Z5zEUJv87Tzd-6AG|WvRFWzdh4NKGwmM_48pWPK4NKC_A-6O9b1fjWXNNaWjXDaLQBwy3I27ob1fNDWwyn20vvG|1328062280
- [expires] =>
- [path] => /
- [domain] => .paypal.com
- [secure] =>
- [httponly] =>
- )
-
- [1] => WP_Http_Cookie Object
- (
- [name] => cookie_check
- [value] => yes
- [expires] => 1643422280
- [path] => /
- [domain] => .paypal.com
- [secure] =>
- [httponly] =>
- )
-
- [2] => WP_Http_Cookie Object
- (
- [name] => navcmd
- [value] => _notify-validate
- [expires] =>
- [path] => /
- [domain] => .paypal.com
- [secure] =>
- [httponly] =>
- )
-
- [3] => WP_Http_Cookie Object
- (
- [name] => navlns
- [value] => 0.0
- [expires] => 1958782280
- [path] => /
- [domain] => .paypal.com
- [secure] =>
- [httponly] =>
- )
-
- [4] => WP_Http_Cookie Object
- (
- [name] => Apache
- [value] => 10.72.109.11.1328062280352579
- [expires] => 2274142280
- [path] => /
- [domain] =>
- )
-
- )
-
- [filename] =>
-)
-
- FP!
- VERIFIED
- No recurring payment id.
-
--------------
-Logged On: 02/01/2012 02:21:02
- Array
-(
- [transaction_subject] => Trial 2 at Member Lite Theme0
- [payment_date] => 18:13:03 Jan 31, 2012 PST
- [txn_type] => express_checkout
- [last_name] => Coleman
- [residence_country] => US
- [item_name] => 1
- [payment_gross] => 1.00
- [mc_currency] => USD
- [payment_type] => instant
- [protection_eligibility] => Ineligible
- [verify_sign] => A51e.cRVoeUk-.da7kBek5IIfUBqArq6K57udP.ogwKS19PBDchFIZAR
- [payer_status] => verified
- [test_ipn] => 1
- [tax] => 0.00
- [payer_email] => ideadude@gmail.com
- [txn_id] => 6PU94429UB434334P
- [quantity] => 1
- [receiver_email] => billin_1203902703_biz@strangerstudios.com
- [first_name] => Jason
- [payer_id] => 9KZCXT4TSSJC2
- [receiver_id] => RVFCZ6PWTFHB8
- [item_number] =>
- [handling_amount] => 0.00
- [payment_status] => Completed
- [payment_fee] => 0.33
- [mc_fee] => 0.33
- [shipping] => 0.00
- [mc_gross] => 1.00
- [custom] =>
- [charset] => windows-1252
- [notify_version] => 3.4
- [correlation_id] => 9bdb93656a89e
-)
-
- Array
-(
- [headers] => Array
- (
- [date] => Wed, 01 Feb 2012 02:13:09 GMT
- [server] => Apache
- [x-frame-options] => SAMEORIGIN
- [set-cookie] => Array
- (
- [0] => c9MWDuvPtT9GIMyPc3jwol1VSlO=ld8Pdb7fWnlfyrylNhGnKTwqzYWfaEdGLC0vxIzyTmiwUM18Ikgeh2_4qqWqlb3ypL6VKC2iVwhw9Cb2g1KW08QsEwk07VPYHeTGt_3GEix7_ROb8Sz_i_6wNX-_NpVDucJwlm%7cbp4S5Zo_X5H25adfGgE8-MmQGz3YezV34-dFZaB51xeU2fWJP_7cwijHwYjvYBy3J_0qsG%7cAzZcFauPRu-WcNh_Ibs_jYJ3TnGx_mWJ0qAlor9p8ubyaVTC-hJeUJtdryZd0kzqu_KRCW%7c1328062390; domain=.paypal.com; path=/; Secure; HttpOnly
- [1] => cookie_check=yes; expires=Sat, 29-Jan-2022 02:13:10 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
- [2] => navcmd=_notify-validate; domain=.paypal.com; path=/; Secure; HttpOnly
- [3] => navlns=0.0; expires=Tue, 27-Jan-2032 02:13:10 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
- [4] => Apache=10.72.109.11.1328062389866837; path=/; expires=Fri, 24-Jan-42 02:13:09 GMT
- )
-
- [connection] => close
- [content-type] => text/html; charset=UTF-8
- )
-
- [body] => VERIFIED
- [response] => Array
- (
- [code] => 200
- [message] => OK
- )
-
- [cookies] => Array
- (
- [0] => WP_Http_Cookie Object
- (
- [name] => c9MWDuvPtT9GIMyPc3jwol1VSlO
- [value] => ld8Pdb7fWnlfyrylNhGnKTwqzYWfaEdGLC0vxIzyTmiwUM18Ikgeh2_4qqWqlb3ypL6VKC2iVwhw9Cb2g1KW08QsEwk07VPYHeTGt_3GEix7_ROb8Sz_i_6wNX-_NpVDucJwlm|bp4S5Zo_X5H25adfGgE8-MmQGz3YezV34-dFZaB51xeU2fWJP_7cwijHwYjvYBy3J_0qsG|AzZcFauPRu-WcNh_Ibs_jYJ3TnGx_mWJ0qAlor9p8ubyaVTC-hJeUJtdryZd0kzqu_KRCW|1328062390
- [expires] =>
- [path] => /
- [domain] => .paypal.com
- [secure] =>
- [httponly] =>
- )
-
- [1] => WP_Http_Cookie Object
- (
- [name] => cookie_check
- [value] => yes
- [expires] => 1643422390
- [path] => /
- [domain] => .paypal.com
- [secure] =>
- [httponly] =>
- )
-
- [2] => WP_Http_Cookie Object
- (
- [name] => navcmd
- [value] => _notify-validate
- [expires] =>
- [path] => /
- [domain] => .paypal.com
- [secure] =>
- [httponly] =>
- )
-
- [3] => WP_Http_Cookie Object
- (
- [name] => navlns
- [value] => 0.0
- [expires] => 1958782390
- [path] => /
- [domain] => .paypal.com
- [secure] =>
- [httponly] =>
- )
-
- [4] => WP_Http_Cookie Object
- (
- [name] => Apache
- [value] => 10.72.109.11.1328062389866837
- [expires] => 2274142389
- [path] => /
- [domain] =>
- )
-
- )
-
- [filename] =>
-)
-
- FP!
- VERIFIED
- No recurring payment id.
-
--------------
View
2  readme.txt
@@ -37,6 +37,8 @@ Please visit our premium support site at http://www.paidmembershipspro.com for m
= 1.3.13 =
* Fixed warning on checkout page. (Thanks Caps!)
* Fixed bug in PayPal Express checkout that resulted in trying to load the confirmation page over SSL (which would break on some servers). (Thanks Caps!)
+* Updated getTaxFromPrice method of order class to allow for better filtering, by level, etc. The pmpro_tax filter now passes the $tax amount, $values (array with price passed and other values), and $this (the order object). It's a little clunky, but must be for backwards compatibility. Custom tax example here: http://www.paidmembershipspro.com/2012/02/custom-tax-structure-using-the-pmpro_tax-hook/
+* Removed all TAXAMT NVP parameters in PayPal Express calls. Including these would sometimes introduce errors during checkout. The tax amount is still included in the total amounts passed. Not sure what impact dropping the TAXAMT property will have on reporting in PayPal. I don't believe their tax reporting is the best anyway. Maybe we can build a tax report into PMPro.
= 1.3.12 =
* Fixed bug in members list pagination on sites installed in a subdirectory.
Please sign in to comment.
Something went wrong with that request. Please try again.