@@ -66,13 +66,13 @@ discard block |
||
| 66 | 66 | */ |
| 67 | 67 | protected function setCartItems($items) |
| 68 | 68 | { |
| 69 | - return (new Collection($items))->map(function ($item, $num) { |
|
| 69 | + return (new Collection($items))->map(function($item, $num) { |
|
| 70 | 70 | return [ |
| 71 | - 'L_PAYMENTREQUEST_0_NAME' . $num => $item['name'], |
|
| 72 | - 'L_PAYMENTREQUEST_0_AMT' . $num => $item['price'], |
|
| 73 | - 'L_PAYMENTREQUEST_0_QTY' . $num => isset($item['qty']) ? $item['qty'] : 1, |
|
| 71 | + 'L_PAYMENTREQUEST_0_NAME'.$num => $item['name'], |
|
| 72 | + 'L_PAYMENTREQUEST_0_AMT'.$num => $item['price'], |
|
| 73 | + 'L_PAYMENTREQUEST_0_QTY'.$num => isset($item['qty']) ? $item['qty'] : 1, |
|
| 74 | 74 | ]; |
| 75 | - })->flatMap(function ($value) { |
|
| 75 | + })->flatMap(function($value) { |
|
| 76 | 76 | return $value; |
| 77 | 77 | }); |
| 78 | 78 | } |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | $response = $this->doPayPalRequest('SetExpressCheckout'); |
| 182 | 182 | |
| 183 | 183 | return collect($response)->merge([ |
| 184 | - 'paypal_link' => !empty($response['TOKEN']) ? $this->config['gateway_url'] . '/webscr?cmd=_express-checkout&token=' . $response['TOKEN'] : null, |
|
| 184 | + 'paypal_link' => !empty($response['TOKEN']) ? $this->config['gateway_url'].'/webscr?cmd=_express-checkout&token='.$response['TOKEN'] : null, |
|
| 185 | 185 | ])->toArray(); |
| 186 | 186 | } |
| 187 | 187 | |