class

App::Services::PaymentProvider

Inherits Reference < Object

Instance methods

charge(invoice : App::Models::Invoice, amount : Int64, token : String | Nil) : String

Charge a payment method for the given invoice. token is provider-specific (e.g. card token, payment method ID). Returns the provider's charge/payment reference ID.

Source
create_customer(org : App::Models::Organization, email : String) : String

Create a customer record on the provider side. Returns the provider's customer ID for future charges.

Source
provider_key

Provider identifier (e.g. "stripe", "manual")

Source
refund(payment : App::Models::Payment) : Bool

Refund a previously captured payment. Returns true if the refund was accepted by the provider.

Source