| 1 | <?php |
||
| 10 | class Charge extends Resource |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * The endpoint that will hit the API. |
||
| 14 | * |
||
| 15 | * @return string |
||
| 16 | */ |
||
| 17 | 24 | public function endpoint() |
|
| 21 | |||
| 22 | /** |
||
| 23 | * Make a POST request to charges/{id}/reissue. |
||
| 24 | * |
||
| 25 | * @param int $id The resource's id. |
||
| 26 | * @param array $form_params |
||
| 27 | * |
||
| 28 | * @return mixed |
||
| 29 | */ |
||
| 30 | 2 | public function reissue($id, array $form_params = []) |
|
| 34 | |||
| 35 | /** |
||
| 36 | * Make a POST request to charges/{id}/charge. |
||
| 37 | * |
||
| 38 | * @param int $id The resource's id. |
||
| 39 | * @param array $form_params |
||
| 40 | * |
||
| 41 | * @return mixed |
||
| 42 | */ |
||
| 43 | 2 | public function charge($id, array $form_params = []) |
|
| 47 | |||
| 48 | /** |
||
| 49 | * Make a POST request to charges/{id}/refund. |
||
| 50 | * |
||
| 51 | * @param int $id The resource's id. |
||
| 52 | * |
||
| 53 | * @return mixed |
||
| 54 | */ |
||
| 55 | 2 | public function refund($id) |
|
| 59 | |||
| 60 | /** |
||
| 61 | * Make a POST request to charges/{id}/fraud_review. |
||
| 62 | * |
||
| 63 | * @param int $id The resource's id. |
||
| 64 | * |
||
| 65 | * @return mixed |
||
| 66 | */ |
||
| 67 | 2 | public function fraudReview($id) |
|
| 71 | } |
||
| 72 |