File tree Expand file tree Collapse file tree 2 files changed +80
-0
lines changed Expand file tree Collapse file tree 2 files changed +80
-0
lines changed Original file line number Diff line number Diff line change 88
99namespace Omnipay \OnePay ;
1010
11+ use Omnipay \OnePay \Message \IncomingRequest ;
12+ use Omnipay \OnePay \Message \Domestic \PurchaseRequest ;
13+ use Omnipay \OnePay \Message \Domestic \QueryTransactionRequest ;
14+
1115/**
1216 * @author Vuong Minh <[email protected] > 1317 * @since 1.0.0
@@ -21,4 +25,40 @@ public function getName(): string
2125 {
2226 return 'OnePay Domestic ' ;
2327 }
28+
29+ /**
30+ *{@inheritdoc}
31+ * @return \Omnipay\Common\Message\AbstractRequest|PurchaseRequest
32+ */
33+ public function purchase (array $ options = []): PurchaseRequest
34+ {
35+ return $ this ->createRequest (PurchaseRequest::class, $ options );
36+ }
37+
38+ /**
39+ *{@inheritdoc}
40+ * @return \Omnipay\Common\Message\AbstractRequest|IncomingRequest
41+ */
42+ public function completePurchase (array $ options = []): IncomingRequest
43+ {
44+ return $ this ->createRequest (IncomingRequest::class, $ options );
45+ }
46+
47+ /**
48+ *{@inheritdoc}
49+ * @return \Omnipay\Common\Message\AbstractRequest|IncomingRequest
50+ */
51+ public function notification (array $ options = []): IncomingRequest
52+ {
53+ return $ this ->createRequest (IncomingRequest::class, $ options );
54+ }
55+
56+ /**
57+ *{@inheritdoc}
58+ * @return \Omnipay\Common\Message\AbstractRequest|QueryTransactionRequest
59+ */
60+ public function queryTransaction (array $ options = []): QueryTransactionRequest
61+ {
62+ return $ this ->createRequest (QueryTransactionRequest::class, $ options );
63+ }
2464}
Original file line number Diff line number Diff line change 88
99namespace Omnipay \OnePay ;
1010
11+ use Omnipay \OnePay \Message \IncomingRequest ;
12+ use Omnipay \OnePay \Message \International \PurchaseRequest ;
13+ use Omnipay \OnePay \Message \International \QueryTransactionRequest ;
14+
1115/**
1216 * @author Vuong Minh <[email protected] > 1317 * @since 1.0.0
@@ -21,4 +25,40 @@ public function getName(): string
2125 {
2226 return 'OnePay International ' ;
2327 }
28+
29+ /**
30+ *{@inheritdoc}
31+ * @return \Omnipay\Common\Message\AbstractRequest|PurchaseRequest
32+ */
33+ public function purchase (array $ options = []): PurchaseRequest
34+ {
35+ return $ this ->createRequest (PurchaseRequest::class, $ options );
36+ }
37+
38+ /**
39+ *{@inheritdoc}
40+ * @return \Omnipay\Common\Message\AbstractRequest|IncomingRequest
41+ */
42+ public function completePurchase (array $ options = []): IncomingRequest
43+ {
44+ return $ this ->createRequest (IncomingRequest::class, $ options );
45+ }
46+
47+ /**
48+ *{@inheritdoc}
49+ * @return \Omnipay\Common\Message\AbstractRequest|IncomingRequest
50+ */
51+ public function notification (array $ options = []): IncomingRequest
52+ {
53+ return $ this ->createRequest (IncomingRequest::class, $ options );
54+ }
55+
56+ /**
57+ *{@inheritdoc}
58+ * @return \Omnipay\Common\Message\AbstractRequest|QueryTransactionRequest
59+ */
60+ public function queryTransaction (array $ options = []): QueryTransactionRequest
61+ {
62+ return $ this ->createRequest (QueryTransactionRequest::class, $ options );
63+ }
2464}
You can’t perform that action at this time.
0 commit comments