View Source ReceiptDecoder.Extractor (receipt_decoder v0.6.0)

Extract content from the receipt

Link to this section Summary

Functions

Decode the Base64-encoded receipt

Extract the payload from receipt

Link to this section Types

@type receipt_t() :: {:ContentInfo, tuple(), tuple()}

Link to this section Functions

Link to this function

decode_receipt(base64_receipt)

View Source
@spec decode_receipt(String.t()) :: {:ok, receipt_t()} | {:error, any()}

Decode the Base64-encoded receipt

Link to this function

extract_payload(receipt)

View Source
@spec extract_payload(receipt_t()) :: {:ok, bitstring()} | {:error, any()}

Extract the payload from receipt