feat: add getCashinDetails method to TelepagosIntegrationService and corresponding tests
This commit is contained in:
@@ -130,6 +130,22 @@ class TelepagosIntegrationService extends BaseIntegrationService
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the details of a cash-in payment.
|
||||
*
|
||||
* @param int $cashinId
|
||||
* @return array
|
||||
* @throws Exception
|
||||
*/
|
||||
public function getCashinDetails(int $cashinId): array
|
||||
{
|
||||
$response = $this->client()->get("/v2/payment/cashin/{$cashinId}");
|
||||
|
||||
return $this->handleResponse($response, 'get cash-in details', [
|
||||
'cashin_id' => $cashinId,
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle the Telepagos API response, logging any failures and throwing Exceptions.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user