@@ -5,9 +5,9 @@ |
||
5 | 5 | return KiplingKelvin\ChpterLaravelSdk\Chpter::mpesaPayment($customer, $products, $amount, $callback_details); |
6 | 6 | } |
7 | 7 | |
8 | -function chpter_card_payment($customer, $products, $amount,$card_details, $callback_details) |
|
8 | +function chpter_card_payment($customer, $products, $amount, $card_details, $callback_details) |
|
9 | 9 | { |
10 | - return KiplingKelvin\ChpterLaravelSdk\Chpter::cardPayment($customer, $products, $amount,$card_details, $callback_details); |
|
10 | + return KiplingKelvin\ChpterLaravelSdk\Chpter::cardPayment($customer, $products, $amount, $card_details, $callback_details); |
|
11 | 11 | } |
12 | 12 | |
13 | 13 | // function chpter_mobile_payouts($customer, $products, $amount, $callback_details) |
@@ -40,7 +40,7 @@ |
||
40 | 40 | public function register() |
41 | 41 | { |
42 | 42 | |
43 | - $this->app->singleton(Chpter::class, function () { |
|
43 | + $this->app->singleton(Chpter::class, function() { |
|
44 | 44 | return new Chpter(); |
45 | 45 | }); |
46 | 46 | } |
@@ -28,14 +28,14 @@ discard block |
||
28 | 28 | //Base URL for the API endpoints. This is basically the 'common' part of the API endpoints |
29 | 29 | $this->chpter_payment_url = config('chpter.payments_url'); |
30 | 30 | $this->token = config('chpter.chpter_token'); |
31 | - $this->domain =config('chpter.domain'); |
|
31 | + $this->domain = config('chpter.domain'); |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | |
35 | 35 | public function mpesaPayment($customer, $products, $amount, $callback_details) |
36 | 36 | { |
37 | 37 | |
38 | - $client = new Client(); |
|
38 | + $client = new Client(); |
|
39 | 39 | |
40 | 40 | $requestBody = array( |
41 | 41 | "customer_details"=> $customer, |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | public function cardPayment($customer, $products, $amount, $card_details, $callback_details) |
64 | 64 | { |
65 | 65 | |
66 | - $client = new Client(); |
|
66 | + $client = new Client(); |
|
67 | 67 | |
68 | 68 | $requestBody = array( |
69 | 69 | "customer_details"=> $customer, |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | |
4 | -Route::get('demo', function () { |
|
4 | +Route::get('demo', function() { |
|
5 | 5 | return "This is amazing right (:"; |
6 | 6 | }); |