ReceiptDecoder.Extractor (receipt_decoder v0.5.0) View Source

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

Specs

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

Link to this section Functions

Link to this function

decode_receipt(base64_receipt)

View Source

Specs

decode_receipt(String.t()) :: {:ok, receipt_t()} | {:error, any()}

Decode the Base64-encoded receipt

Link to this function

extract_payload(receipt)

View Source

Specs

extract_payload(receipt_t()) :: {:ok, bitstring()} | {:error, any()}

Extract the payload from receipt