@@ -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 | } |
@@ -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 | } |
@@ -308,7 +308,7 @@ |
||
308 | 308 | ], $this->options); |
309 | 309 | |
310 | 310 | $this->post = $this->post->merge($config) |
311 | - ->filter(function ($value, $key) use ($method) { |
|
311 | + ->filter(function($value, $key) use ($method) { |
|
312 | 312 | return (($method === 'verifyipn') && ($key === 'METHOD')) ?: $value; |
313 | 313 | }); |
314 | 314 | } |