Skip to main content

settlement_to_header

Function settlement_to_header 

Source
pub fn settlement_to_header(
    settlement: &SettleResponse,
) -> Result<HeaderValue, GateError>
Available on crate feature server only.
Expand description

Encodes a successful settlement as Payment-Response.

ยงErrors

GateError::SettlementAborted when the response is not success or encoding fails.