@@ -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) |
@@ -22,13 +22,13 @@ |
||
| 22 | 22 | if ($this->app->runningInConsole()) { |
| 23 | 23 | //publish the config files |
| 24 | 24 | $this->publishes([ |
| 25 | - __DIR__.'/../config/chpter.php' => config_path('chpter.php'), |
|
| 26 | - ], 'chpter-config'); |
|
| 25 | + __DIR__.'/../config/chpter.php' => config_path('chpter.php'), |
|
| 26 | + ], 'chpter-config'); |
|
| 27 | 27 | |
| 28 | 28 | // Register commands |
| 29 | 29 | $this->commands([ |
| 30 | 30 | InstallChpter::class, |
| 31 | - ]); |
|
| 31 | + ]); |
|
| 32 | 32 | } |
| 33 | 33 | } |
| 34 | 34 | |
@@ -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 | } |
@@ -26,9 +26,9 @@ |
||
| 26 | 26 | public function __construct() |
| 27 | 27 | { |
| 28 | 28 | //Base URL for the API endpoints. This is basically the 'common' part of the API endpoints |
| 29 | - $this->chpter_payment_url = config('chpter.payments_url'); |
|
| 30 | - $this->token = config('chpter.chpter_token'); |
|
| 31 | - $this->domain =config('chpter.domain'); |
|
| 29 | + $this->chpter_payment_url = config('chpter.payments_url'); |
|
| 30 | + $this->token = config('chpter.chpter_token'); |
|
| 31 | + $this->domain =config('chpter.domain'); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | |
@@ -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 | }); |
@@ -16,8 +16,8 @@ |
||
| 16 | 16 | $this->info('Publishing Configuration...'); |
| 17 | 17 | |
| 18 | 18 | $this->call('vendor:publish', [ |
| 19 | - '--provider' => "KiplingKelvin\ChpterLaravelSdk\ChpterServiceProvider", |
|
| 20 | - '--tag' => "chpter-config" |
|
| 19 | + '--provider' => "KiplingKelvin\ChpterLaravelSdk\ChpterServiceProvider", |
|
| 20 | + '--tag' => "chpter-config" |
|
| 21 | 21 | ]); |
| 22 | 22 | |
| 23 | 23 | $this->info('Installed Chpter for Laravel'); |