PaperTiger.Resources.BillingPortalSession (PaperTiger v1.1.1)

Copy Markdown View Source

Handles Billing Portal Session creation and deterministic browser redirect.

Summary

Functions

Browser-accessible Billing Portal Session URL.

Creates a Billing Portal Session.

Functions

browser_enter(conn, id)

@spec browser_enter(Plug.Conn.t(), String.t()) :: Plug.Conn.t()

Browser-accessible Billing Portal Session URL.

PaperTiger does not host an interactive subscription-management page. Visiting the portal URL redirects to the session's return URL when present, or returns a deterministic completion response otherwise.

create(conn)

@spec create(Plug.Conn.t()) :: Plug.Conn.t()

Creates a Billing Portal Session.