Response API

Ecr17Response parses raw application payloads into typed response objects.

Parser Return
parsePayment() PaymentResponse
parsePreAuth() PreAuthResponse
parseStatus() StatusResponse
parseTotals() TotalsResponse
parseClose() CloseResponse
parseVas() VasResponse

Common pattern

use Padosoft\Ecr17\Response\Outcome;

if ($response->outcome === Outcome::Ok) {
    // Persist successful terminal result fields.
}
Unknown fields

Terminal firmware may vary. Keep raw diagnostic context during rollout, but redact sensitive payment data.