Skip to main content

encode_payment_response

Function encode_payment_response 

Source
pub fn encode_payment_response(
    response: &SettleResponse,
) -> Result<String, HttpError>
Expand description

Encodes a SettleResponse as a Base64 string for the PAYMENT-RESPONSE header.

ยงErrors

Returns HttpError::Serialize if JSON serialization fails.