BepaidEx v0.9.1 Bepaid.GatewayBehaviour behaviour

Interface for Bepaid.Gateway. Could be used for defining your own module for testing.

Link to this section Summary

Link to this section Types

Link to this type http_response()
http_response() :: {:ok, map()} | {:error, any()}

Link to this section Callbacks

Link to this callback exec(url, params)
exec(url :: any(), params :: any()) :: http_response()
Link to this callback exec(atom, url, params)
exec(atom(), url :: any(), params :: any()) :: http_response()
Link to this callback get_transaction(arg0)
get_transaction(String.t()) :: http_response()
Link to this callback post_request(data, url)
post_request(data :: any(), url :: any()) :: http_response()
Link to this callback put_authorization(arg0)
put_authorization(Bepaid.Payment.t()) :: http_response()
Link to this callback put_charge(arg0)
put_charge(Bepaid.Payment.t()) :: http_response()
Link to this callback put_refund(map)
put_refund(map()) :: http_response()
Link to this callback put_refund(uid, amount, reason)
put_refund(uid :: any(), amount :: any(), reason :: String.t()) :: http_response()
Link to this callback void_authorization(uid, amount)
void_authorization(uid :: any(), amount :: any()) :: http_response()