Siftsciex v0.3.1 Siftsciex.Validation.Gateway View Source

Payments are typically processed by Gateways, this module manages the list of “known” gateways and provides simple logic for checking if a value is a supported Gateway.

Link to this section Summary

Functions

Checks to see if the given Gateway is “known”/“supported”

Link to this section Functions

Link to this function supported?(gateway) View Source
supported?(String.t()) :: boolean()

Checks to see if the given Gateway is “known”/“supported”

Parameters

  • gateway: The name to be checked

Examples

iex> Gateway.supported?("xipay")
true

iex> Gateway.supported?("ripoff")
false