iyzico v1.0.1 Iyzico.Card

Link to this section Summary

Types

t()

Represents a card to perform the checkout

Functions

Invalidates a registration of given card

Same as delete_card/1 but raises Iyzico.CardNotRegistered error if card is not registered

Retrieves all cards of a user

Link to this section Types

Link to this type t()
t() :: %Iyzico.Card{cvc: integer, exp_month: integer, exp_year: integer, holder_name: binary, number: binary, register?: integer}

Represents a card to perform the checkout.

Link to this section Functions

Link to this function create_card(card)
Link to this function delete_card(card)
delete_card(Iyzico.Card.t) :: :ok | {:error, :not_found}

Invalidates a registration of given card.

Link to this function delete_card!(card)
delete_card!(Iyzico.Card.t) :: no_return

Same as delete_card/1 but raises Iyzico.CardNotRegistered error if card is not registered.

Link to this function retrieve_cards()
retrieve_cards() :: list

Retrieves all cards of a user.