1 | <?php |
||
9 | class PayWithBank3D extends ApiRequest |
||
10 | { |
||
11 | protected $initializeUrl = 'api/transaction/initialize'; |
||
12 | protected $verifyUrl = 'api/payment/verify/'; |
||
13 | |||
14 | protected $redirectUrl; |
||
15 | |||
16 | protected function generateUrl($data) |
||
37 | |||
38 | public function setUrl($data = []) |
||
48 | |||
49 | public function getUrl() |
||
53 | |||
54 | /** |
||
55 | * Redirect to PayWithBank3D Payment Page. |
||
56 | */ |
||
57 | public function redirectNow() |
||
61 | |||
62 | /** |
||
63 | * Query PayWithBank3d Verify Route And Return True Or False If Payment Is Successful. |
||
64 | * @return bool |
||
65 | */ |
||
66 | protected function verifyReference() |
||
73 | |||
74 | /** |
||
75 | * Get Payment details if the transaction was verified successfully. |
||
76 | * @throws \Parkwayprojects\PayWithBank3D\Exceptions\CouldNotProcess |
||
77 | */ |
||
78 | public function getData() |
||
85 | } |
||
86 |