Shopifex v1.1.0 Shopifex.RedirectAfterAgent behaviour View Source

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Callbacks

Retrieve the redirect url from cache with key charge_id and remove the key from cache.

Set a redirect url in cache with key charge_id

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

set(charge_id, redirect_uri)

View Source

Link to this section Callbacks

Specs

get(charge_id :: String.t() | pos_integer()) :: String.t() | nil

Retrieve the redirect url from cache with key charge_id and remove the key from cache.

Link to this callback

set(charge_id, redirect_uri)

View Source

Specs

set(charge_id :: pos_integer(), redirect_uri :: String.t()) :: :ok

Set a redirect url in cache with key charge_id