Shopifex v0.3.3 ShopifexWeb.AuthController behaviour View Source
You can use this module inside of another controller to handle initial iFrame load and shop installation
defmodule MyAppWeb.AuthController do use MyAppWeb, :controller use ShopifexWeb.AuthController # Thats it! Validation, installation are now handled for you :) end
Link to this section Summary
Link to this section Callbacks
An optional callback called after the installation is completed, the shop is persisted in the database and webhooks are registered. By default, this function redirects the user to the app within their Shopify admin panel.
def after_install(conn, shop) do # send yourself an e-mail about shop installation # follow default behaviour. super(conn, shop) end