@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | private function setApiProviderConfiguration($credentials) |
190 | 190 | { |
191 | 191 | // Setting PayPal API Credentials |
192 | - collect($credentials[$this->mode])->map(function ($value, $key) { |
|
192 | + collect($credentials[$this->mode])->map(function($value, $key) { |
|
193 | 193 | $this->config[$key] = $value; |
194 | 194 | }); |
195 | 195 | |
@@ -331,7 +331,7 @@ discard block |
||
331 | 331 | ], $this->options); |
332 | 332 | |
333 | 333 | $this->post = $this->post->merge($config) |
334 | - ->filter(function ($value, $key) use ($method) { |
|
334 | + ->filter(function($value, $key) use ($method) { |
|
335 | 335 | return (($method === 'verifyipn') && ($key === 'METHOD')) ?: $value; |
336 | 336 | }); |
337 | 337 | } |
@@ -403,8 +403,7 @@ discard block |
||
403 | 403 | |
404 | 404 | parse_str($response, $output); |
405 | 405 | |
406 | - $output['paypal_link'] = empty($output['TOKEN']) ?: |
|
407 | - $this->config['gateway_url'].'/webscr?cmd=_express-checkout&token='.$output['TOKEN']; |
|
406 | + $output['paypal_link'] = empty($output['TOKEN']) ?: $this->config['gateway_url'].'/webscr?cmd=_express-checkout&token='.$output['TOKEN']; |
|
408 | 407 | |
409 | 408 | return $output; |
410 | 409 | } |