bluepay v0.4.0 Bluepay.Parser

Summary

Functions

Decodes the given body

Decodes the given tuple and stores it in the accumulator. It parses the key and stores the value into the current accumulator. Parameter lists are added to the accumulator in reverse order, so be sure to pass the parameters in reverse order

Encodes the given map or list of tuples

Functions

decode(body, default \\ %{})

Decodes the given body.

decode_pair(arg, acc)

Decodes the given tuple and stores it in the accumulator. It parses the key and stores the value into the current accumulator. Parameter lists are added to the accumulator in reverse order, so be sure to pass the parameters in reverse order.

encode(kv, encoder \\ &to_string/1)

Encodes the given map or list of tuples.