| @@ 8-31 (lines=24) @@ | ||
| 5 | ||
| 6 | use MerchantSafeUnipay; |
|
| 7 | ||
| 8 | class ApproveActions extends ActionAbstract implements ActionInterface |
|
| 9 | { |
|
| 10 | ||
| 11 | ||
| 12 | public function approveTransaction($args) |
|
| 13 | { |
|
| 14 | $this->action = 'APPROVETRANSACTION'; |
|
| 15 | $queryParamKeys = [ |
|
| 16 | 'PGTRANID' |
|
| 17 | ]; |
|
| 18 | $args = MerchantSafeUnipay\filter($queryParamKeys, $args); |
|
| 19 | $this->queryParameters = $args; |
|
| 20 | } |
|
| 21 | ||
| 22 | public function approveDealer($args) |
|
| 23 | { |
|
| 24 | $this->action = 'DEALERAPPROVE'; |
|
| 25 | $queryParamKeys = [ |
|
| 26 | 'DEALERCODE' |
|
| 27 | ]; |
|
| 28 | $args = MerchantSafeUnipay\filter($queryParamKeys, $args); |
|
| 29 | $this->queryParameters = $args; |
|
| 30 | } |
|
| 31 | } |
|
| 32 | ||
| @@ 8-30 (lines=23) @@ | ||
| 5 | ||
| 6 | use MerchantSafeUnipay; |
|
| 7 | ||
| 8 | class Merchant extends ActionAbstract implements ActionInterface |
|
| 9 | { |
|
| 10 | ||
| 11 | public function enable($args) |
|
| 12 | { |
|
| 13 | $this->action = 'MERCHANTENABLE'; |
|
| 14 | $queryParamKeys = [ |
|
| 15 | 'MERCHANTBUSINESSID' |
|
| 16 | ]; |
|
| 17 | $args = MerchantSafeUnipay\filter($queryParamKeys, $args); |
|
| 18 | $this->queryParameters = $args; |
|
| 19 | } |
|
| 20 | ||
| 21 | public function disable($args) |
|
| 22 | { |
|
| 23 | $this->action = 'MERCHANTDISABLE'; |
|
| 24 | $queryParamKeys = [ |
|
| 25 | 'MERCHANTBUSINESSID' |
|
| 26 | ]; |
|
| 27 | $args = MerchantSafeUnipay\filter($queryParamKeys, $args); |
|
| 28 | $this->queryParameters = $args; |
|
| 29 | } |
|
| 30 | } |
|
| 31 | ||