Apruve v0.1.0 Apruve.Order.SecureHash View Source
Helper module for calculating the Order secure hash.
Link to this section Summary
Link to this section Functions
Link to this function
secure_hash_for_order_and_api_key(order, api_key)
View Source
secure_hash_for_order_and_api_key(Apruve.Order.t(), String.t()) :: String.t()
Calculates the secure hash.
See https://docs.apruve.com/docs/merchant-integration-tutorial-1 for more details.
Link to this function
value_string_for_hash(order, api_key)
View Source
value_string_for_hash(Apruve.Order.t(), String.t()) :: String.t()
Returns the unhashed string needed for the Apruve secure hash.
See also secure_hash_for_order_and_api_key/2