feat: add getCashinDetails method to TelepagosIntegrationService and corresponding tests

This commit is contained in:
2026-07-06 09:01:45 -03:00
parent 04b2bb0b2a
commit 403caf77f5
2 changed files with 127 additions and 0 deletions

View File

@@ -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.
*