Accrue.Error.NoDefaultPaymentMethod exception (accrue v1.0.0)

Copy Markdown View Source

Raised when a charge or subscription call requires a default payment method and the customer has none set. Callers should surface a user-facing "add a payment method" prompt.

Summary

Types

t()

@type t() :: %Accrue.Error.NoDefaultPaymentMethod{
  __exception__: true,
  customer_id: term(),
  message: term()
}