File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Codeboxr \Nagad \Facade ;
4+
5+ use Illuminate \Support \Facades \Facade ;
6+
7+ /**
8+ * @method static refund($paymentRefId, $refundAmount)
9+ */
10+ class NagadRefund extends Facade
11+ {
12+ /**
13+ * Get the registered name of the component.
14+ *
15+ * @return string
16+ */
17+ protected static function getFacadeAccessor ()
18+ {
19+ return 'refundPayment ' ;
20+ }
21+ }
Original file line number Diff line number Diff line change 22
33namespace Codeboxr \Nagad ;
44
5+ use Codeboxr \Nagad \Payment \Refund ;
56use Codeboxr \Nagad \Payment \Payment ;
67use Illuminate \Support \ServiceProvider ;
78
@@ -34,5 +35,9 @@ public function register()
3435 $ this ->app ->bind ("payment " , function () {
3536 return new Payment ();
3637 });
38+
39+ $ this ->app ->bind ("refundPayment " , function () {
40+ return new Refund ();
41+ });
3742 }
3843}
You can’t perform that action at this time.
0 commit comments