@@ -55,11 +55,11 @@ |
||
55 | 55 | */ |
56 | 56 | private function registerPayPal() |
57 | 57 | { |
58 | - $this->app->singleton('express_checkout', function () { |
|
58 | + $this->app->singleton('express_checkout', function() { |
|
59 | 59 | return new ExpressCheckout(); |
60 | 60 | }); |
61 | 61 | |
62 | - $this->app->singleton('adaptive_payments', function () { |
|
62 | + $this->app->singleton('adaptive_payments', function() { |
|
63 | 63 | return new AdaptivePayments(); |
64 | 64 | }); |
65 | 65 | } |
@@ -305,7 +305,7 @@ |
||
305 | 305 | |
306 | 306 | // Checking Whether The Request Is PayPal IPN Response |
307 | 307 | if ($method == 'verifyipn') { |
308 | - $this->post = $this->post->filter(function ($value, $key) { |
|
308 | + $this->post = $this->post->filter(function($value, $key) { |
|
309 | 309 | return ($key !== 'METHOD') ? $value : ''; |
310 | 310 | }); |
311 | 311 |
@@ -69,13 +69,13 @@ discard block |
||
69 | 69 | */ |
70 | 70 | protected function setCartItems($items) |
71 | 71 | { |
72 | - return (new Collection($items))->map(function ($item, $num) { |
|
72 | + return (new Collection($items))->map(function($item, $num) { |
|
73 | 73 | return [ |
74 | 74 | 'L_PAYMENTREQUEST_0_NAME'.$num => $item['name'], |
75 | 75 | 'L_PAYMENTREQUEST_0_AMT'.$num => $item['price'], |
76 | 76 | 'L_PAYMENTREQUEST_0_QTY'.$num => $item['qty'], |
77 | 77 | ]; |
78 | - })->flatMap(function ($value) { |
|
78 | + })->flatMap(function($value) { |
|
79 | 79 | return $value; |
80 | 80 | }); |
81 | 81 | } |
@@ -113,8 +113,7 @@ discard block |
||
113 | 113 | |
114 | 114 | $response = $this->doPayPalRequest('SetExpressCheckout'); |
115 | 115 | |
116 | - $response['paypal_link'] = empty($response['TOKEN']) ?: |
|
117 | - $this->config['gateway_url'].'/webscr?cmd=_express-checkout&token='.$response['TOKEN']; |
|
116 | + $response['paypal_link'] = empty($response['TOKEN']) ?: $this->config['gateway_url'].'/webscr?cmd=_express-checkout&token='.$response['TOKEN']; |
|
118 | 117 | |
119 | 118 | return $response; |
120 | 119 | } |