Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
srmklive committed Mar 26, 2017
1 parent 4a2cd09 commit 9c270ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Services/ExpressCheckout.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ public function setExpressCheckout($data, $subscription = false)

$response = $this->doPayPalRequest('SetExpressCheckout');

$response['paypal_link'] = !empty($response['TOKEN']) ?
$this->config['gateway_url'].'/webscr?cmd=_express-checkout&token='.$response['TOKEN'] : '';
$response['paypal_link'] = empty($response['TOKEN']) ?:
$this->config['gateway_url'].'/webscr?cmd=_express-checkout&token='.$response['TOKEN'];

return $response;
}
Expand Down

0 comments on commit 9c270ea

Please sign in to comment.