Remove unnecessary check

This commit is contained in:
Xiaolei Wheelock
2017-05-04 11:03:33 -05:00
parent 1d1f1d46ad
commit fa2d202970
2 changed files with 1 additions and 15 deletions

View File

@@ -554,7 +554,7 @@ class Payment extends PayPalResourceModel
{ {
$parameter_name = "token"; $parameter_name = "token";
parse_str(parse_url($this->getApprovalLink(), PHP_URL_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]; return !isset($query[$parameter_name]) ? null : $query[$parameter_name];
} }
/** /**

View File

@@ -1,14 +0,0 @@
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
#