Parses cnpAPI XML responses.
Summary
Functions
True if the response indicates approval (response code "000").
Extract FraudSight advancedFraudResults from the response.
Parse a cnpAPI XML response string.
Extract response code from parsed cnp response.
Extract the cnpTxnId from any transaction response.
Functions
True if the response indicates approval (response code "000").
Extract FraudSight advancedFraudResults from the response.
@spec parse(String.t()) :: {:ok, %{required(String.t()) => term()}} | {:error, {:xml_parse_error, Exception.t()}}
Parse a cnpAPI XML response string.
Extract response code from parsed cnp response.
Extract the cnpTxnId from any transaction response.