WalletPasses.Google.SaveUrl (wallet_passes v0.4.4)

Copy Markdown View Source

Generates 'Save to Google Wallet' URLs via signed JWTs.

Summary

Functions

Builds a signed JWT containing the pass object for Google Wallet.

Builds a full "Save to Google Wallet" URL.

Functions

build_jwt(pass_object, opts \\ [])

Builds a signed JWT containing the pass object for Google Wallet.

Options

  • :origins - List of allowed origins for the save button (optional)

url(pass_object, opts \\ [])

Builds a full "Save to Google Wallet" URL.

Returns {:ok, url} or {:error, reason}.