@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | /** |
50 | 50 | * Bind to service container. |
51 | 51 | */ |
52 | - $this->app->bind('shetabit-payment', function () { |
|
52 | + $this->app->bind('shetabit-payment', function() { |
|
53 | 53 | $config = config('payment') ?? []; |
54 | 54 | |
55 | 55 | return new Payment($config); |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | $this->registerEvents(); |
59 | 59 | |
60 | 60 | // use blade to render redirection form |
61 | - Payment::setRedirectionFormViewRenderer(function ($view, $action, $inputs, $method) { |
|
61 | + Payment::setRedirectionFormViewRenderer(function($view, $action, $inputs, $method) { |
|
62 | 62 | return view('shetabitPayment::redirectForm')->with( |
63 | 63 | [ |
64 | 64 | 'action' => $action, |
@@ -76,11 +76,11 @@ discard block |
||
76 | 76 | */ |
77 | 77 | public function registerEvents() |
78 | 78 | { |
79 | - Payment::addPurchaseListener(function ($driver, $invoice) { |
|
79 | + Payment::addPurchaseListener(function($driver, $invoice) { |
|
80 | 80 | event(new InvoicePurchasedEvent($driver, $invoice)); |
81 | 81 | }); |
82 | 82 | |
83 | - Payment::addVerifyListener(function ($reciept, $driver, $invoice) { |
|
83 | + Payment::addVerifyListener(function($reciept, $driver, $invoice) { |
|
84 | 84 | event(new InvoiceVerifiedEvent($reciept, $driver, $invoice)); |
85 | 85 | }); |
86 | 86 | } |