class

KemalcrStarter::Infrastructure::Billing::StripeBillingAdapter

Inherits KemalcrStarter::Infrastructure::Billing::BillingAdapter < Reference < Object

Minimal Stripe REST adapter (form-encoded API). Replace via App.install_billing_adapter for richer providers.

Constants

API_BASE = "https://api.stripe.com"

Constructors

new(api_key : String)
Source

Instance methods

cancel_subscription(subscription_id : String) : Bool
Source
create_checkout_session(*, customer_id : String, price_id : String, success_url : String, cancel_url : String) : CheckoutSession
Source
create_customer(*, email : String, name : String | Nil, organization_id : String) : BillingCustomer
Source
provider
Source