| 1 | <?php |
||
| 5 | class Charge extends Resource |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * The endpoint that will hit the API. |
||
| 9 | * |
||
| 10 | * @return string |
||
| 11 | */ |
||
| 12 | 20 | public function endpoint() |
|
| 16 | |||
| 17 | /** |
||
| 18 | * Make a POST request to charges/{id}/reissue. |
||
| 19 | * |
||
| 20 | * @param int $id The resource's id. |
||
| 21 | * @param array $form_params |
||
| 22 | * |
||
| 23 | * @return mixed |
||
| 24 | */ |
||
| 25 | 2 | public function reissue($id, array $form_params = []) |
|
| 29 | |||
| 30 | /** |
||
| 31 | * Make a POST request to charges/{id}/charge. |
||
| 32 | * |
||
| 33 | * @param int $id The resource's id. |
||
| 34 | * @param array $form_params |
||
| 35 | * |
||
| 36 | * @return mixed |
||
| 37 | */ |
||
| 38 | 2 | public function charge($id, array $form_params = []) |
|
| 42 | |||
| 43 | /** |
||
| 44 | * Make a POST request to charges/{id}/refund. |
||
| 45 | * |
||
| 46 | * @param int $id The resource's id. |
||
| 47 | * |
||
| 48 | * @return mixed |
||
| 49 | */ |
||
| 50 | public function refund($id) |
||
| 54 | } |
||
| 55 |