receipt_decoder v0.4.0 ReceiptDecoder.Extractor 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

Link to this type

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

Link to this section Functions

Link to this function

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

Decode the Base64-encoded receipt

Link to this function

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

Extract the payload from receipt