File tree Expand file tree Collapse file tree 8 files changed +37
-8
lines changed Expand file tree Collapse file tree 8 files changed +37
-8
lines changed Original file line number Diff line number Diff line change 33namespace PHPViet \Laravel \Omnipay \Facades \MoMo ;
44
55use Illuminate \Support \Facades \Facade ;
6+ use Omnipay \MoMo \AllInOneGateway as MoMoGateway ;
67
78/**
9+ * @method static \Omnipay\MoMo\Message\AllInOne\PurchaseRequest purchase(array $options = [])
10+ * @method static \Omnipay\MoMo\Message\AllInOne\QueryTransactionRequest queryTransaction(array $options = [])
11+ * @method static \Omnipay\MoMo\Message\AllInOne\CompletePurchaseRequest completePurchase(array $options = [])
12+ * @method static \Omnipay\MoMo\Message\AllInOne\NotificationRequest notification(array $options = [])
13+ * @method static \Omnipay\MoMo\Message\AllInOne\QueryRefundRequest queryRefund(array $options = [])
14+ *
815 * @author Vuong Minh <vuongxuongminh@gmail.com>
916 * @since 1.0.0
1017 */
@@ -13,7 +20,7 @@ class AllInOneGateway extends Facade
1320 /**
1421 * {@inheritdoc}
1522 */
16- protected static function getFacadeAccessor ()
23+ protected static function getFacadeAccessor (): MoMoGateway
1724 {
1825 return static ::$ app ['omnipay ' ]->gateway ('MoMoAIO ' );
1926 }
Original file line number Diff line number Diff line change 99namespace PHPViet \Laravel \Omnipay \Facades \MoMo ;
1010
1111use Illuminate \Support \Facades \Facade ;
12+ use Omnipay \MoMo \AppInAppGateway as MoMoGateway ;
1213
1314/**
15+ * @method static \Omnipay\MoMo\Message\AppInApp\PurchaseRequest purchase(array $options = [])
16+ * @method static \Omnipay\MoMo\Message\PayConfirmRequest payConfirm(array $options = [])
17+ * @method static \Omnipay\MoMo\Message\PayQueryStatusRequest queryTransaction(array $options = [])
18+ * @method static \Omnipay\MoMo\Message\PayRefundRequest queryRefund(array $options = [])
19+ *
1420 * @author Vuong Minh <vuongxuongminh@gmail.com>
1521 * @since 1.0.0
1622 */
@@ -19,7 +25,7 @@ class AppInAppGateway extends Facade
1925 /**
2026 * {@inheritdoc}
2127 */
22- protected static function getFacadeAccessor ()
28+ protected static function getFacadeAccessor (): MoMoGateway
2329 {
2430 return static ::$ app ['omnipay ' ]->gateway ('MoMoAIA ' );
2531 }
Original file line number Diff line number Diff line change 99namespace PHPViet \Laravel \Omnipay \Facades \MoMo ;
1010
1111use Illuminate \Support \Facades \Facade ;
12+ use Omnipay \MoMo \POSGateway as MoMoGateway ;
1213
1314/**
15+ * @method static \Omnipay\MoMo\Message\POS\PurchaseRequest purchase(array $options = [])
16+ * @method static \Omnipay\MoMo\Message\PayConfirmRequest payConfirm(array $options = [])
17+ * @method static \Omnipay\MoMo\Message\PayQueryStatusRequest queryTransaction(array $options = [])
18+ * @method static \Omnipay\MoMo\Message\PayRefundRequest queryRefund(array $options = [])
19+ *
1420 * @author Vuong Minh <vuongxuongminh@gmail.com>
1521 * @since 1.0.0
1622 */
@@ -19,7 +25,7 @@ class POSGateway extends Facade
1925 /**
2026 * {@inheritdoc}
2127 */
22- protected static function getFacadeAccessor ()
28+ protected static function getFacadeAccessor (): MoMoGateway
2329 {
2430 return static ::$ app ['omnipay ' ]->gateway ('MoMoPOS ' );
2531 }
Original file line number Diff line number Diff line change 99namespace PHPViet \Laravel \Omnipay \Facades \MoMo ;
1010
1111use Illuminate \Support \Facades \Facade ;
12+ use Omnipay \MoMo \QRCodeGateway as MoMoGateway ;
1213
1314/**
15+ * @method static \Omnipay\MoMo\Message\QRCode\NotificationRequest notification(array $options = [])
16+ * @method static \Omnipay\MoMo\Message\PayConfirmRequest payConfirm(array $options = [])
17+ * @method static \Omnipay\MoMo\Message\PayQueryStatusRequest queryTransaction(array $options = [])
18+ * @method static \Omnipay\MoMo\Message\PayRefundRequest queryRefund(array $options = [])
19+ *
1420 * @author Vuong Minh <vuongxuongminh@gmail.com>
1521 * @since 1.0.0
1622 */
@@ -19,7 +25,7 @@ class QRCodeGateway extends Facade
1925 /**
2026 * {@inheritdoc}
2127 */
22- protected static function getFacadeAccessor ()
28+ protected static function getFacadeAccessor (): MoMoGateway
2329 {
2430 return static ::$ app ['omnipay ' ]->gateway ('MoMoQRCode ' );
2531 }
Original file line number Diff line number Diff line change 99namespace PHPViet \Laravel \Omnipay \Facades \OnePay ;
1010
1111use Illuminate \Support \Facades \Facade ;
12+ use Omnipay \OnePay \DomesticGateway as OnePayGateway ;
1213
1314/**
1415 * @method static \Omnipay\OnePay\Message\Domestic\PurchaseRequest purchase(array $options = [])
@@ -24,7 +25,7 @@ class DomesticGateway extends Facade
2425 /**
2526 * {@inheritdoc}
2627 */
27- protected static function getFacadeAccessor ()
28+ protected static function getFacadeAccessor (): OnePayGateway
2829 {
2930 return static ::$ app ['omnipay ' ]->gateway ('OnePayDomestic ' );
3031 }
Original file line number Diff line number Diff line change 99namespace PHPViet \Laravel \Omnipay \Facades \OnePay ;
1010
1111use Illuminate \Support \Facades \Facade ;
12+ use Omnipay \OnePay \InternationalGateway as OnePayGateway ;
1213
1314/**
1415 * @method static \Omnipay\OnePay\Message\International\PurchaseRequest purchase(array $options = [])
@@ -24,7 +25,7 @@ class InternationalGateway extends Facade
2425 /**
2526 * {@inheritdoc}
2627 */
27- protected static function getFacadeAccessor ()
28+ protected static function getFacadeAccessor (): OnePayGateway
2829 {
2930 return static ::$ app ['omnipay ' ]->gateway ('OnePayInternational ' );
3031 }
Original file line number Diff line number Diff line change 99namespace PHPViet \Laravel \Omnipay \Facades \VNPay ;
1010
1111use Illuminate \Support \Facades \Facade ;
12+ use Omnipay \VNPay \Gateway as VNPayGateway ;
1213
1314/**
1415 * @method static \Omnipay\VNPay\Message\PurchaseRequest purchase(array $options = [])
@@ -25,7 +26,7 @@ class Gateway extends Facade
2526 /**
2627 * {@inheritdoc}
2728 */
28- protected static function getFacadeAccessor ()
29+ protected static function getFacadeAccessor (): VNPayGateway
2930 {
3031 return static ::$ app ['omnipay ' ]->gateway ('VNPay ' );
3132 }
Original file line number Diff line number Diff line change 99namespace PHPViet \Laravel \Omnipay \Facades \VTCPay ;
1010
1111use Illuminate \Support \Facades \Facade ;
12+ use Omnipay \VTCPay \Gateway as VTCPayGateway ;
1213
1314/**
1415 * @method static \Omnipay\VTCPay\Message\PurchaseRequest purchase(array $options = [])
@@ -23,7 +24,7 @@ class Gateway extends Facade
2324 /**
2425 * {@inheritdoc}
2526 */
26- protected static function getFacadeAccessor ()
27+ protected static function getFacadeAccessor (): VTCPayGateway
2728 {
2829 return static ::$ app ['omnipay ' ]->gateway ('VTCPay ' );
2930 }
You can’t perform that action at this time.
0 commit comments