PhoenixKit.Modules.Billing.Providers.Types.PaymentMethodInfo (phoenix_kit v1.7.71)

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 identifier
  • provider - Provider atom (:stripe, :paypal, :razorpay)
  • provider_payment_method_id - Provider's payment method ID
  • provider_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 nil
  • last4 - Last 4 digits of card number or nil
  • exp_month - Expiration month or nil
  • exp_year - Expiration year or nil
  • metadata - Provider-specific metadata

Summary

Types

t()

@type t() :: %PhoenixKit.Modules.Billing.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()
}