@@ -49,14 +49,14 @@ discard block |
||
| 49 | 49 | */ |
| 50 | 50 | public function register() |
| 51 | 51 | { |
| 52 | - Request::overwrite('input', function ($key) { |
|
| 52 | + Request::overwrite('input', function($key) { |
|
| 53 | 53 | return \request($key); |
| 54 | 54 | }); |
| 55 | 55 | |
| 56 | 56 | /** |
| 57 | 57 | * Bind to service container. |
| 58 | 58 | */ |
| 59 | - $this->app->bind('shetabit-payment', function () { |
|
| 59 | + $this->app->bind('shetabit-payment', function() { |
|
| 60 | 60 | $config = config('payment') ?? []; |
| 61 | 61 | |
| 62 | 62 | return new Payment($config); |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | $this->registerEvents(); |
| 66 | 66 | |
| 67 | 67 | // use blade to render redirection form |
| 68 | - Payment::setRedirectionFormViewRenderer(function ($view, $action, $inputs, $method) { |
|
| 68 | + Payment::setRedirectionFormViewRenderer(function($view, $action, $inputs, $method) { |
|
| 69 | 69 | return Blade::render( |
| 70 | 70 | Str::replace('</form>', '@csrf</form>', file_get_contents($view)), |
| 71 | 71 | [ |
@@ -84,11 +84,11 @@ discard block |
||
| 84 | 84 | */ |
| 85 | 85 | public function registerEvents() |
| 86 | 86 | { |
| 87 | - Payment::addPurchaseListener(function ($driver, $invoice) { |
|
| 87 | + Payment::addPurchaseListener(function($driver, $invoice) { |
|
| 88 | 88 | event(new InvoicePurchasedEvent($driver, $invoice)); |
| 89 | 89 | }); |
| 90 | 90 | |
| 91 | - Payment::addVerifyListener(function ($reciept, $driver, $invoice) { |
|
| 91 | + Payment::addVerifyListener(function($reciept, $driver, $invoice) { |
|
| 92 | 92 | event(new InvoiceVerifiedEvent($reciept, $driver, $invoice)); |
| 93 | 93 | }); |
| 94 | 94 | } |