Total Complexity | 2 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | class NotifyRequest extends Request { |
||
24 | /** |
||
25 | * Constructor. |
||
26 | * |
||
27 | * @param string $transaction_id Transaction ID. |
||
28 | * @param string $entrance_code Entrance code. |
||
29 | * @param string $status Status. |
||
30 | * @param string $merchant_id Merchant ID. |
||
31 | */ |
||
32 | public function __construct( $transaction_id, $entrance_code, $status, $merchant_id ) { |
||
33 | parent::__construct( $merchant_id ); |
||
34 | |||
35 | $this->set_parameter( 'trxid', $transaction_id ); |
||
36 | $this->set_parameter( 'ec', $entrance_code ); |
||
37 | $this->set_parameter( 'status', $status ); |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * Get signature data. |
||
42 | * |
||
43 | * @return array |
||
44 | */ |
||
45 | public function get_signature_data() { |
||
58 | ); |
||
59 | } |
||
61 |