forked from LiveCarta/PayPal-PHP-SDK
Remove unnecessary check
This commit is contained in:
@@ -554,7 +554,7 @@ class Payment extends PayPalResourceModel
|
||||
{
|
||||
$parameter_name = "token";
|
||||
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];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user