Skip to content

Commit cdaa392

Browse files
author
Mostafa Kamal
committed
Merge branch 'master' of https://github.com/code4mk/LaraStripe
2 parents ed70659 + b31e5ee commit cdaa392

15 files changed

+297
-37
lines changed

src/Facades/LStripeBalance.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
/**
66
* @author @code4mk <[email protected]>
7-
* @author @0devco <with@0dev.co>
8-
* @copyright 0dev.co (https://0dev.co)
7+
* @author @kawsarsoft <with@kawsarsoft.com>
8+
* @copyright Kawsar Soft. (http://kawsarsoft.com)
99
*/
1010

1111
use Illuminate\Support\Facades\Facade;

src/Facades/LStripeCharge.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
/**
66
* @author @code4mk <[email protected]>
7-
* @author @0devco <with@0dev.co>
8-
* @copyright 0dev.co (https://0dev.co)
7+
* @author @kawsarsoft <with@kawsarsoft.com>
8+
* @copyright Kawsar Soft. (http://kawsarsoft.com)
99
*/
1010

1111
use Illuminate\Support\Facades\Facade;

src/Facades/LStripeCheckout.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
/**
66
* @author @code4mk <[email protected]>
7-
* @author @0devco <with@0dev.co>
8-
* @copyright 0dev.co (https://0dev.co)
7+
* @author @kawsarsoft <with@kawsarsoft.com>
8+
* @copyright Kawsar Soft. (http://kawsarsoft.com)
99
*/
1010

1111
use Illuminate\Support\Facades\Facade;

src/Facades/LStripeCoupon.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
namespace Code4mk\LaraStripe\Facades;
4+
5+
/**
6+
* @author @code4mk <[email protected]>
7+
* @author @kawsarsoft <[email protected]>
8+
* @copyright Kawsar Soft. (http://kawsarsoft.com)
9+
*/
10+
11+
use Illuminate\Support\Facades\Facade;
12+
13+
class LStripeCoupon extends Facade
14+
{
15+
/**
16+
* Get the registered name of the component.
17+
*
18+
* @return string
19+
*/
20+
protected static function getFacadeAccessor()
21+
{
22+
return 'laraStripeCoupon';
23+
}
24+
}

src/Facades/LStripeCustomer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
/**
66
* @author @code4mk <[email protected]>
7-
* @author @0devco <with@0dev.co>
8-
* @copyright 0dev.co (https://0dev.co)
7+
* @author @kawsarsoft <with@kawsarsoft.com>
8+
* @copyright Kawsar Soft. (http://kawsarsoft.com)
99
*/
1010

1111
use Illuminate\Support\Facades\Facade;

src/Facades/LStripePlan.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
namespace Code4mk\LaraStripe\Facades;
4+
5+
/**
6+
* @author @code4mk <[email protected]>
7+
* @author @kawsarsoft <[email protected]>
8+
* @copyright Kawsar Soft. (http://kawsarsoft.com)
9+
*/
10+
11+
use Illuminate\Support\Facades\Facade;
12+
13+
class LStripePlan extends Facade
14+
{
15+
/**
16+
* Get the registered name of the component.
17+
*
18+
* @return string
19+
*/
20+
protected static function getFacadeAccessor()
21+
{
22+
return 'laraStripePlan';
23+
}
24+
}

src/Facades/LStripeSubscription.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
namespace Code4mk\LaraStripe\Facades;
4+
5+
/**
6+
* @author @code4mk <[email protected]>
7+
* @author @kawsarsoft <[email protected]>
8+
* @copyright Kawsar Soft. (http://kawsarsoft.com)
9+
*/
10+
11+
use Illuminate\Support\Facades\Facade;
12+
13+
class LStripeSubscription extends Facade
14+
{
15+
/**
16+
* Get the registered name of the component.
17+
*
18+
* @return string
19+
*/
20+
protected static function getFacadeAccessor()
21+
{
22+
return 'laraStripeSubscription';
23+
}
24+
}

src/LaraStripeServiceProvider.php

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
/**
66
* @author @code4mk <[email protected]>
7-
* @author @0devco <with@0dev.co>
8-
* @copyright 0dev.co (https://0dev.co)
7+
* @author @kawsarsoft <with@kawsarsoft.com>
8+
* @copyright Kawsar Soft. (http://kawsarsoft.com)
99
*/
1010

1111
use Illuminate\Support\ServiceProvider;
@@ -14,6 +14,9 @@
1414
use Code4mk\LaraStripe\StripeCheckout;
1515
use Code4mk\LaraStripe\StripeBalance;
1616
use Code4mk\LaraStripe\StripeCustomer;
17+
use Code4mk\LaraStripe\StripePlans;
18+
use Code4mk\LaraStripe\StripeCoupon;
19+
use Code4mk\LaraStripe\StripeSubscription;
1720

1821
class LaraStripeServiceProvider extends ServiceProvider
1922
{
@@ -35,6 +38,10 @@ public function boot()
3538
AliasLoader::getInstance()->alias('LaraStripeCheckout', 'Code4mk\LaraStripe\Facades\LStripeCheckout');
3639
AliasLoader::getInstance()->alias('LaraStripeBalance', 'Code4mk\LaraStripe\Facades\LStripeBalance');
3740
AliasLoader::getInstance()->alias('LaraStripeCustomer', 'Code4mk\LaraStripe\Facades\LStripeCustomer');
41+
AliasLoader::getInstance()->alias('LaraStripeCoupon', 'Code4mk\LaraStripe\Facades\LStripeCoupon');
42+
AliasLoader::getInstance()->alias('LaraStripePlan', 'Code4mk\LaraStripe\Facades\LStripePlan');
43+
AliasLoader::getInstance()->alias('LaraStripeSubs', 'Code4mk\LaraStripe\Facades\LStripeSubscription');
44+
3845
}
3946

4047
/**
@@ -60,5 +67,17 @@ public function register()
6067
return new StripeCustomer;
6168
});
6269

70+
$this->app->bind('laraStripeCoupon', function () {
71+
return new StripeCoupon;
72+
});
73+
74+
$this->app->bind('laraStripePlan', function () {
75+
return new StripePlans;
76+
});
77+
78+
$this->app->bind('laraStripeSubscription', function () {
79+
return new StripeSubscription;
80+
});
81+
6382
}
6483
}

src/StripeBalance.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
/**
55
* @author @code4mk <[email protected]>
6-
* @author @0devco <with@0dev.co>
7-
* @copyright 0dev.co (https://0dev.co)
6+
* @author @kawsarsoft <with@kawsarsoft.com>
7+
* @copyright Kawsar Soft. (http://kawsarsoft.com)
88
*/
99

1010
use Stripe\Stripe;

src/StripeCharge.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
/**
55
* @author @code4mk <[email protected]>
6-
* @author @0devco <with@0dev.co>
7-
* @copyright 0dev.co (https://0dev.co)
6+
* @author @kawsarsoft <with@kawsarsoft.com>
7+
* @copyright Kawsar Soft. (http://kawsarsoft.com)
88
*/
99

1010
use Stripe\Stripe;

0 commit comments

Comments
 (0)