Skip to content

Commit 8065c3c

Browse files
committed
removed unecesary comments
1 parent c0133c9 commit 8065c3c

File tree

4 files changed

+2
-29
lines changed

4 files changed

+2
-29
lines changed

src/Epay_Webhook.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ public function __construct()
1818
public function handleWebhook()
1919
{
2020
$chargily = new Chargily([
21-
//credentials
2221
'api_key' => config('laravel-chargily-epay.key'),
2322
'api_secret' => config('laravel-chargily-epay.secret'),
2423
]);
@@ -33,7 +32,6 @@ public function handleWebhook()
3332
} elseif ($response['invoice']['status'] === 'failed') {
3433
$this->invoiceIsPaied = false;
3534
}
36-
// exit('OK');
3735
}
3836
}
3937
}

src/LaravelChargilyEPayServiceProvider.php

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ class LaravelChargilyEPayServiceProvider extends ServiceProvider
1111
*/
1212
public function boot()
1313
{
14-
/*
15-
* Optional methods to load your package assets
16-
*/
17-
// $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'laravel-chargily-epay');
1814
$this->loadViewsFrom(__DIR__.'/../resources/views', 'laravel-chargily-epay');
1915
$this->loadMigrationsFrom(__DIR__.'/../database/migrations');
2016
$this->loadRoutesFrom(__DIR__.'/../routes/web.php');
@@ -31,24 +27,6 @@ public function boot()
3127
$this->publishes([
3228
__DIR__.'/Models' => app_path('models'),
3329
], 'models');
34-
35-
// Publishing the views.
36-
/*$this->publishes([
37-
__DIR__.'/../resources/views' => resource_path('views/vendor/laravel-chargily-epay'),
38-
], 'views');*/
39-
40-
// Publishing assets.
41-
/*$this->publishes([
42-
__DIR__.'/../resources/assets' => public_path('vendor/laravel-chargily-epay'),
43-
], 'assets');*/
44-
45-
// Publishing the translation files.
46-
/*$this->publishes([
47-
__DIR__.'/../resources/lang' => resource_path('lang/vendor/laravel-chargily-epay'),
48-
], 'lang');*/
49-
50-
// Registering package commands.
51-
// $this->commands([]);
5230
}
5331
}
5432

@@ -57,7 +35,6 @@ public function boot()
5735
*/
5836
public function register()
5937
{
60-
// Automatically apply the package configuration
6138
$this->mergeConfigFrom(__DIR__.'/../config/config.php', 'laravel-chargily-epay');
6239
}
6340
}

src/Models/Epay_Invoice.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@ class Epay_Invoice extends Model
1616
public static function make(array $configurations)
1717
{
1818
$configurations = [
19-
//credentials
2019
'api_key' => config('laravel-chargily-epay.key'),
2120
'api_secret' => config('laravel-chargily-epay.secret'),
2221

23-
//urls
2422
'urls' => [
2523
'back_url' => config('laravel-chargily-epay.back_url'), // this is where client redirected after payment processing
2624
'webhook_url' => config('laravel-chargily-epay.webhook_url'), // this is where you receive payment informations

src/Traits/Epayable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ public function invoices()
1414
public function charge(array $configurations)
1515
{
1616
$configurations['payment'] = [
17-
'client_name' => $this->name, // Client name
18-
'client_email' => $this->email, // This is where client receive payment receipt after confirmation
17+
'client_name' => $this->name,
18+
'client_email' => $this->email,
1919
] + $configurations['payment'];
2020

2121
$configurations = $configurations + ['user_id' => $this->id];

0 commit comments

Comments
 (0)