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.