@@ -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 | } |
@@ -196,7 +196,7 @@ |
||
| 196 | 196 | * |
| 197 | 197 | * @throws \Exception |
| 198 | 198 | * |
| 199 | - * @return string |
|
| 199 | + * @return PayPalRequest |
|
| 200 | 200 | */ |
| 201 | 201 | public function setCurrency($currency = 'USD') |
| 202 | 202 | { |
@@ -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 | } |
@@ -28,13 +28,13 @@ discard block |
||
| 28 | 28 | */ |
| 29 | 29 | public function setExpressCheckout($data, $subscription = false) |
| 30 | 30 | { |
| 31 | - $this->post = collect($data['items'])->map(function ($item, $num) { |
|
| 31 | + $this->post = collect($data['items'])->map(function($item, $num) { |
|
| 32 | 32 | return [ |
| 33 | 33 | 'L_PAYMENTREQUEST_0_NAME'.$num => $item['name'], |
| 34 | 34 | 'L_PAYMENTREQUEST_0_AMT'.$num => $item['price'], |
| 35 | 35 | 'L_PAYMENTREQUEST_0_QTY'.$num => $item['qty'], |
| 36 | 36 | ]; |
| 37 | - })->flatMap(function ($value) { |
|
| 37 | + })->flatMap(function($value) { |
|
| 38 | 38 | return $value; |
| 39 | 39 | })->merge([ |
| 40 | 40 | 'PAYMENTREQUEST_0_ITEMAMT' => $data['total'], |
@@ -94,13 +94,13 @@ discard block |
||
| 94 | 94 | */ |
| 95 | 95 | public function doExpressCheckoutPayment($data, $token, $payerid) |
| 96 | 96 | { |
| 97 | - $this->post = collect($data['items'])->map(function ($item, $num) { |
|
| 97 | + $this->post = collect($data['items'])->map(function($item, $num) { |
|
| 98 | 98 | return [ |
| 99 | 99 | 'L_PAYMENTREQUEST_0_NAME'.$num => $item['name'], |
| 100 | 100 | 'L_PAYMENTREQUEST_0_AMT'.$num => $item['price'], |
| 101 | 101 | 'L_PAYMENTREQUEST_0_QTY'.$num => $item['qty'], |
| 102 | 102 | ]; |
| 103 | - })->flatMap(function ($value) { |
|
| 103 | + })->flatMap(function($value) { |
|
| 104 | 104 | return $value; |
| 105 | 105 | })->merge([ |
| 106 | 106 | 'TOKEN' => $token, |