Skip to main content

encode_payment_required

Function encode_payment_required 

Source
pub fn encode_payment_required(
    required: &PaymentRequired,
) -> Result<String, HttpError>
Expand description

Encodes a PaymentRequired (V2) as a Base64 string for the PAYMENT-REQUIRED header.

ยงErrors

Returns HttpError::Serialize if JSON serialization fails.