View Source ReceiptDecoder.Extractor (receipt_decoder v0.7.0)

Extract content from the receipt

Summary

Functions

Decode the Base64-encoded receipt

Extract the payload from receipt

Types

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

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