Gamend.Payments.Providers.Stripe (gamend_core v1.0.1296)

Copy Markdown View Source

Minimal Stripe Checkout and webhook adapter.

Summary

Functions

A Stripe customer-portal session for customer_id: the Stripe-hosted page where the buyer cancels, changes card and downloads invoices. Returns the session; its "url" is single-use and short-lived, so open it right away.

Functions

cancel_subscription_at_period_end(subscription_id)

create_billing_portal_session(customer_id, return_url)

A Stripe customer-portal session for customer_id: the Stripe-hosted page where the buyer cancels, changes card and downloads invoices. Returns the session; its "url" is single-use and short-lived, so open it right away.

create_checkout_session(purchase, provider_product, attrs)

retrieve_checkout_session(session_id)

retrieve_subscription(subscription_id)

verify_webhook(raw_body, signature_header)