diff --git a/lib/PayPal/Api/Payment.php b/lib/PayPal/Api/Payment.php index 0d06b04..4ac9ef4 100644 --- a/lib/PayPal/Api/Payment.php +++ b/lib/PayPal/Api/Payment.php @@ -553,7 +553,7 @@ class Payment extends PayPalResourceModel public function getToken() { $parameter_name = "token"; - parse_str(parse_url($this->getApprovalLink())['query'], $query); + parse_str(parse_url($this->getApprovalLink(), PHP_URL_QUERY), $query); return (!isset($query[$parameter_name]) || is_null($query[$parameter_name])) ? null : $query[$parameter_name]; } diff --git a/mskrpqzz.osv.txt b/mskrpqzz.osv.txt new file mode 100644 index 0000000..d71f6b1 --- /dev/null +++ b/mskrpqzz.osv.txt @@ -0,0 +1,14 @@ +Add getToken() to Payment class to get the EC token from the Approval URL + +# Please enter the commit message for your changes. Lines starting +# with '#' will be ignored, and an empty message aborts the commit. +# +# Date: Tue May 2 14:10:00 2017 -0500 +# +# On branch master +# Your branch is up-to-date with 'origin/master'. +# +# Changes to be committed: +# modified: lib/PayPal/Api/Payment.php +# +