WalletPasses.Google.Router (wallet_passes v0.6.0)

Copy Markdown View Source

Plug.Router for Google Wallet class callbacks.

Mount in your Phoenix router outside any CSRF-protected pipeline:

forward "/passes/google", to: WalletPasses.Google.Router

The endpoint is POST /callback. Configure the URL Google should hit:

config :wallet_passes, :google_callback_url, "https://yourdomain.com/passes/google/callback"

Summary

Functions

Callback implementation for Plug.call/2.

Callback implementation for Plug.init/1.

Functions

call(conn, opts)

Callback implementation for Plug.call/2.

init(opts)

Callback implementation for Plug.init/1.