@@ -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 | } |
@@ -288,7 +288,7 @@ |
||
| 288 | 288 | |
| 289 | 289 | // Checking Whether The Request Is PayPal IPN Response |
| 290 | 290 | if ($method == 'verifyipn') { |
| 291 | - $this->post = $this->post->filter(function ($value, $key) { |
|
| 291 | + $this->post = $this->post->filter(function($value, $key) { |
|
| 292 | 292 | if ($key !== 'METHOD') { |
| 293 | 293 | return $value; |
| 294 | 294 | } |
@@ -29,13 +29,13 @@ discard block |
||
| 29 | 29 | */ |
| 30 | 30 | public function setExpressCheckout($data, $subscription = false) |
| 31 | 31 | { |
| 32 | - $this->post = $this->setRequestData($data['items'])->map(function ($item, $num) { |
|
| 32 | + $this->post = $this->setRequestData($data['items'])->map(function($item, $num) { |
|
| 33 | 33 | return [ |
| 34 | 34 | 'L_PAYMENTREQUEST_0_NAME'.$num => $item['name'], |
| 35 | 35 | 'L_PAYMENTREQUEST_0_AMT'.$num => $item['price'], |
| 36 | 36 | 'L_PAYMENTREQUEST_0_QTY'.$num => $item['qty'], |
| 37 | 37 | ]; |
| 38 | - })->flatMap(function ($value) { |
|
| 38 | + })->flatMap(function($value) { |
|
| 39 | 39 | return $value; |
| 40 | 40 | })->merge([ |
| 41 | 41 | 'PAYMENTREQUEST_0_ITEMAMT' => $data['total'], |
@@ -95,13 +95,13 @@ discard block |
||
| 95 | 95 | */ |
| 96 | 96 | public function doExpressCheckoutPayment($data, $token, $payerid) |
| 97 | 97 | { |
| 98 | - $this->post = $this->setRequestData($data['items'])->map(function ($item, $num) { |
|
| 98 | + $this->post = $this->setRequestData($data['items'])->map(function($item, $num) { |
|
| 99 | 99 | return [ |
| 100 | 100 | 'L_PAYMENTREQUEST_0_NAME'.$num => $item['name'], |
| 101 | 101 | 'L_PAYMENTREQUEST_0_AMT'.$num => $item['price'], |
| 102 | 102 | 'L_PAYMENTREQUEST_0_QTY'.$num => $item['qty'], |
| 103 | 103 | ]; |
| 104 | - })->flatMap(function ($value) { |
|
| 104 | + })->flatMap(function($value) { |
|
| 105 | 105 | return $value; |
| 106 | 106 | })->merge([ |
| 107 | 107 | 'TOKEN' => $token, |