class

KemalcrStarter::Modules::Billing::BillingService

Inherits Reference < Object

Constructors

new(settings : Core::Config::Settings, database : DB::Database, billing_adapter : Infrastructure::Billing::BillingAdapter, event_repository : Infrastructure::DB::OutboxEventRepository | Nil = nil)
Source

Instance methods

adapter_provider
Source
create_checkout(actor_id : String, organization_id : String, price_id : String, success_url : String, cancel_url : String) : Infrastructure::Billing::CheckoutSession
Source
handle_stripe_webhook(payload : String, signature_header : String | Nil) : String

Returns a symbol-like status for the route layer.

Source