@@ -40,7 +40,7 @@ |
||
40 | 40 | { |
41 | 41 | $this->sofortApi->setAmount($purchase->total()); |
42 | 42 | $this->sofortApi->setCurrencyCode('EUR'); |
43 | - $this->sofortApi->setReason('#'.$purchase->id . ' Purchase'); |
|
43 | + $this->sofortApi->setReason('#' . $purchase->id . ' Purchase'); |
|
44 | 44 | $this->sofortApi->setSuccessUrl(route('ts.payment.successful', [ |
45 | 45 | 'purchase' => $purchase->random_id, |
46 | 46 | 'secret' => $purchase->payment_secret |
@@ -65,12 +65,12 @@ |
||
65 | 65 | $returnable->with('status', $e->getMessage()); |
66 | 66 | Log::warning($e); |
67 | 67 | } catch (PayPalConnectionException $e) { |
68 | - Log::warning('[PayPal] [paymentId='. $paymentId . '|payerId=' . $payerId . '] ' . $e->getMessage()); |
|
68 | + Log::warning('[PayPal] [paymentId=' . $paymentId . '|payerId=' . $payerId . '] ' . $e->getMessage()); |
|
69 | 69 | // This will print the detailed information on the exception. |
70 | 70 | //REALLY HELPFUL FOR DEBUGGING |
71 | 71 | Log::error($e->getData()); |
72 | 72 | } catch (\Exception $e) { |
73 | - Log::warning('[General] [paymentId='. $paymentId . '|payerId=' . $payerId . '] ' . $e->getMessage()); |
|
73 | + Log::warning('[General] [paymentId=' . $paymentId . '|payerId=' . $payerId . '] ' . $e->getMessage()); |
|
74 | 74 | } |
75 | 75 | return $returnable; |
76 | 76 | } |
@@ -24,10 +24,10 @@ |
||
24 | 24 | public function rules() |
25 | 25 | { |
26 | 26 | $filter = 'in:'; |
27 | - if(env('KLARNA_CONFIG_KEY')) { |
|
27 | + if (env('KLARNA_CONFIG_KEY')) { |
|
28 | 28 | $filter .= 'Klarna,'; |
29 | 29 | } |
30 | - if(env('PAYPAL_CLIENT_SECRET')) { |
|
30 | + if (env('PAYPAL_CLIENT_SECRET')) { |
|
31 | 31 | $filter .= 'PayPal,'; |
32 | 32 | } |
33 | 33 | return [ |