Skip to main content

encode_x_payment

Function encode_x_payment 

Source
pub fn encode_x_payment(payload: &PaymentPayloadV1) -> Result<String, HttpError>
Expand description

Encodes a V1 PaymentPayloadV1 as a Base64 string for the X-PAYMENT header.

ยงErrors

Returns HttpError::Serialize if JSON serialization fails.