@@ -40,7 +40,7 @@ discard block |
||
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 |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | |
53 | 53 | if ($this->sofortApi->isError()) { |
54 | 54 | // SOFORT-API didn't accept the data |
55 | - foreach($this->sofortApi->getErrors() as $error) { |
|
55 | + foreach ($this->sofortApi->getErrors() as $error) { |
|
56 | 56 | Log::error($error); |
57 | 57 | } |
58 | 58 | throw new PaymentProviderException("SOFORT got errors..."); |