| 1 | <?php |
||
| 11 | class ChargeWithToken extends AbstractChargeWithToken |
||
| 12 | { |
||
| 13 | |||
| 14 | use VerifyHttpStatusResponseCode; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * The relative link for charging users |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | const TOKEN_CHARGE_RELATIVE_LINK = "/transaction/charge_authorization"; |
||
| 21 | |||
| 22 | const SUCCESS_MESSAGE = "Successful"; |
||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $baseUrl; |
||
| 27 | |||
| 28 | 29 | public function __construct(string $baseUrl) |
|
| 29 | { |
||
| 30 | 29 | $this->baseUrl = $baseUrl; |
|
| 31 | 29 | } |
|
| 32 | |||
| 33 | 3 | public function handle(array $args) : array |
|
| 49 | |||
| 50 | 3 | public function chargeByToken($data) |
|
| 57 | } |
||
| 58 |