Bling.PaymentMethod (bling v0.4.0)

A struct to normalize stripe sources.

Link to this section Summary

Functions

Given a stripe source, card, or payment method, returns a Bling.PaymentMethod struct or nil.

Link to this section Types

@type t() :: %{
  id: String.t(),
  type: String.t(),
  last_four: String.t() | nil,
  card_brand: String.t() | nil
}

Link to this section Functions

Link to this function

from_source(source)

Given a stripe source, card, or payment method, returns a Bling.PaymentMethod struct or nil.