CyberSource SDK v1.0.0 CyberSourceSDK.Helper View Source
Small utility functions
Link to this section Summary
Functions
Check what type of payment is: Android Pay or Apple Pay
Convert a Map that have the keys as strings to atoms
Invalid configuration message error
Decode Base64 string to JSON structure
Link to this section Functions
Check what type of payment is: Android Pay or Apple Pay
Results
{:ok, :android_pay}
{:ok, :apple_pay}
{:error, :not_found}
Convert a Map that have the keys as strings to atoms
Examples
iex> CyberSourceSDK.Helper.convert_map_to_key_atom(%{"a" => 3, "b" => 5})
%{a: 3, b: 5}
Invalid configuration message error