File tree Expand file tree Collapse file tree 2 files changed +68
-0
lines changed Expand file tree Collapse file tree 2 files changed +68
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+ /**
3+ * @link https://github.com/phpviet/omnipay-onepay
4+ *
5+ * @copyright (c) PHP Viet
6+ * @license [MIT](https://opensource.org/licenses/MIT)
7+ */
8+
9+ namespace Omnipay \OnePay \Message ;
10+
11+ /**
12+ * @author Vuong Minh <[email protected] > 13+ * @since 1.0.0
14+ */
15+ class CompletePurchaseResponse extends AbstractSignatureResponse
16+ {
17+
18+ }
Original file line number Diff line number Diff line change 1+ <?php
2+ /**
3+ * @link https://github.com/phpviet/omnipay-onepay
4+ *
5+ * @copyright (c) PHP Viet
6+ * @license [MIT](https://opensource.org/licenses/MIT)
7+ */
8+
9+ namespace Omnipay \OnePay \Message ;
10+
11+ use Omnipay \Common \Message \RedirectResponseInterface ;
12+
13+ /**
14+ * @author Vuong Minh <[email protected] > 15+ * @since 1.0.0
16+ */
17+ class PurchaseResponse extends AbstractResponse implements RedirectResponseInterface
18+ {
19+ /**
20+ * {@inheritdoc}
21+ */
22+ public function isSuccessful (): bool
23+ {
24+ return false ;
25+ }
26+
27+ /**
28+ * {@inheritdoc}
29+ */
30+ public function getRedirectUrl (): string
31+ {
32+ return $ this ->data ['redirect_url ' ];
33+ }
34+
35+ /**
36+ * {@inheritdoc}
37+ */
38+ public function isRedirect (): bool
39+ {
40+ return true ;
41+ }
42+
43+ /**
44+ * {@inheritdoc}
45+ */
46+ public function getTransactionId (): string
47+ {
48+ return $ this ->data ['vpc_MerchTxnRef ' ];
49+ }
50+ }
You can’t perform that action at this time.
0 commit comments