PhoenixKitBilling. Providers. Types. PaymentMethodInfo
(PhoenixKitBilling v0.3.1)
Copy Markdown
View Source
Struct returned by Provider.get_payment_method_details/1.
Named PaymentMethodInfo to avoid clash with the PaymentMethod Ecto schema.
Fields
id- Provider-specific payment method identifierprovider- Provider atom (:stripe,:paypal,:razorpay)provider_payment_method_id- Provider's payment method IDprovider_customer_id- Provider's customer ID (nil if unknown)type- Payment method type (e.g.,"card","paypal")brand- Card brand (e.g.,"visa","mastercard") or nillast4- Last 4 digits of card number or nilexp_month- Expiration month or nilexp_year- Expiration year or nilmetadata- Provider-specific metadata
Summary
Types
@type t() :: %PhoenixKitBilling.Providers.Types.PaymentMethodInfo{ brand: String.t() | nil, exp_month: integer() | nil, exp_year: integer() | nil, id: String.t(), last4: String.t() | nil, metadata: map(), provider: atom(), provider_customer_id: String.t() | nil, provider_payment_method_id: String.t(), type: String.t() }