iyzico v1.5.0 Iyzico.CardRegistration
Provides functions for registering, querying and managing cards registered in target platform.
Link to this section Summary
Functions
Stores a card with given external identifier. One can later retrieve or refer to the given card with that identifier
Invalidates a registration of given card
Same as delete_card/1
but raises Iyzico.CardNotRegisteredError
error if
card is not registered
Retrieves all cards of a user
Validates a card, returns true
value if card is valid. Otherwise, returns false
Link to this section Functions
create_card(Iyzico.Card.t, binary, binary, binary, Keyword.t) :: {:ok, Iyzico.CardReference.t, Iyzico.Metadata.t} | {:error, :invalid_card}
Stores a card with given external identifier. One can later retrieve or refer to the given card with that identifier.
delete_card(binary, binary, binary) :: {:ok, Iyzico.Metadata.t} | {:error, :not_found}
Invalidates a registration of given card.
delete_card!(binary, binary, binary) :: no_return
Same as delete_card/1
but raises Iyzico.CardNotRegisteredError
error if
card is not registered.
retrieve_cards(binary, binary) :: {:ok, list, Iyzico.Metadate.t} | {:error, atom}
Retrieves all cards of a user.
Validates a card, returns true
value if card is valid. Otherwise, returns false
.