pinxs v2.0.0 PINXS.Cards.Card View Source
Provides functions for working with cards
Required Fields
When creating a card, the following fields much be provided
- number
- expiry_month
- expiry_year
- cvc
- name
- address_line1
- address_country
Link to this section Summary
Functions
Creates a tokenized credit card
Link to this section Types
Link to this type
t()
View Source
t() :: %PINXS.Cards.Card{ address_city: nil | String.t(), address_country: String.t(), address_line1: String.t(), address_line2: nil | String.t(), address_postcode: nil | String.t(), address_state: nil | String.t(), cvc: String.t(), expiry_month: String.t(), expiry_year: String.t(), name: String.t(), number: String.t(), token: nil | String.t() }
Link to this section Functions
Link to this function
create(card, config)
View Source
create(PINXS.Cards.Card.t(), PINXS.t()) :: {:ok, PINXS.Cards.Card.t()} | {:error, PINXS.Error.t()}
Creates a tokenized credit card