Worldpay.Schema.PaymentInstrument (Worldpay v1.0.0)

Copy Markdown View Source

Payment instrument variants.

:typeDescription
"card/plain"Raw card details
"card/checkout"Checkout SDK session href
"card/token"Stored Worldpay token href
"card/networkToken"Network token href + optional cryptogram
"card/networkToken+applepay"Decrypted Apple Pay network token
"card/networkToken+googlepay"Decrypted Google Pay network token

Summary

Functions

Serialize to a string-keyed map for the Worldpay API.

Types

t()

@type t() :: %Worldpay.Schema.PaymentInstrument{
  billing_address: Worldpay.Schema.Address.t() | nil,
  card_holder_name: String.t() | nil,
  card_number: String.t() | nil,
  cryptogram: String.t() | nil,
  cvc: String.t() | nil,
  eci: String.t() | nil,
  expiry_month: non_neg_integer() | nil,
  expiry_year: non_neg_integer() | nil,
  href: String.t() | nil,
  session_href: String.t() | nil,
  token: String.t() | nil,
  type: String.t()
}

Functions

to_map(pi)

@spec to_map(t()) :: %{required(String.t()) => term()}

Serialize to a string-keyed map for the Worldpay API.