View Source Stripe.Terminal.Reader (Striped v0.5.0) (generated)
A Reader represents a physical device for accepting payment details.
Related guide: Connecting to a Reader.
Link to this section Summary
Types
Simulated data for the card_present payment method
Cart
Configuration overrides
The terminal.reader type.
Tipping configuration for this transaction.
Functions
Cancels the current reader action.
Creates a new Reader object.
Deletes a Reader object.
Returns a list of Reader objects.
Presents a payment method on a simulated reader. Can be used to simulate accepting a payment, saving a card or refunding a transaction.
Initiates a payment flow on a Reader.
Initiates a setup intent flow on a Reader.
Retrieves a Reader object.
Sets reader display to show cart details.
Updates a Reader object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Link to this section Types
@type card_present() :: %{optional(:number) => binary()}
Simulated data for the card_present payment method
@type cart() :: %{ optional(:currency) => binary(), optional(:line_items) => [line_items()], optional(:tax) => integer(), optional(:total) => integer() }
Cart
@type process_config() :: %{ optional(:skip_tipping) => boolean(), optional(:tipping) => tipping() }
Configuration overrides
@type t() :: %Stripe.Terminal.Reader{ action: term() | nil, device_sw_version: binary() | nil, device_type: binary(), id: binary(), ip_address: binary() | nil, label: binary(), livemode: boolean(), location: (binary() | Stripe.Terminal.Location.t()) | nil, metadata: term(), object: binary(), serial_number: binary(), status: binary() | nil }
The terminal.reader type.
actionThe most recent action performed by the reader.device_sw_versionThe current software version of the reader.device_typeType of reader, one ofbbpos_wisepad3,stripe_m2,bbpos_chipper2x,bbpos_wisepos_e,verifone_P400, orsimulated_wisepos_e.idUnique identifier for the object.ip_addressThe local IP address of the reader.labelCustom label given to the reader for easier identification.livemodeHas the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.locationThe location identifier of the reader.metadataSet of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.objectString representing the object's type. Objects of the same type share the same value.serial_numberSerial number of the reader.statusThe networking status of the reader.
@type tipping() :: %{optional(:amount_eligible) => integer()}
Tipping configuration for this transaction.
Link to this section Functions
@spec cancel_action( client :: Stripe.t(), reader :: binary(), params :: %{optional(:expand) => [binary()]}, opts :: Keyword.t() ) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Cancels the current reader action.
Details
- Method:
post - Path:
/v1/terminal/readers/{reader}/cancel_action
@spec create( client :: Stripe.t(), params :: %{ optional(:expand) => [binary()], optional(:label) => binary(), optional(:location) => binary(), optional(:metadata) => %{optional(binary()) => binary()} | binary(), optional(:registration_code) => binary() }, opts :: Keyword.t() ) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Creates a new Reader object.
Details
- Method:
post - Path:
/v1/terminal/readers
@spec delete(client :: Stripe.t(), reader :: binary(), opts :: Keyword.t()) :: {:ok, Stripe.DeletedTerminal.Reader.t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Deletes a Reader object.
Details
- Method:
delete - Path:
/v1/terminal/readers/{reader}
@spec list( client :: Stripe.t(), params :: %{ optional(:device_type) => :bbpos_chipper2x | :bbpos_wisepad3 | :bbpos_wisepos_e | :simulated_wisepos_e | :stripe_m2 | :verifone_P400, optional(:ending_before) => binary(), optional(:expand) => [binary()], optional(:limit) => integer(), optional(:location) => binary(), optional(:starting_after) => binary(), optional(:status) => :offline | :online }, opts :: Keyword.t() ) :: {:ok, Stripe.List.t(t())} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Returns a list of Reader objects.
Details
- Method:
get - Path:
/v1/terminal/readers
@spec present_payment_method( client :: Stripe.t(), reader :: binary(), params :: %{ optional(:card_present) => card_present(), optional(:expand) => [binary()], optional(:type) => :card_present }, opts :: Keyword.t() ) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Presents a payment method on a simulated reader. Can be used to simulate accepting a payment, saving a card or refunding a transaction.
Details
- Method:
post - Path:
/v1/test_helpers/terminal/readers/{reader}/present_payment_method
@spec process_payment_intent( client :: Stripe.t(), reader :: binary(), params :: %{ optional(:expand) => [binary()], optional(:payment_intent) => binary(), optional(:process_config) => process_config() }, opts :: Keyword.t() ) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Initiates a payment flow on a Reader.
Details
- Method:
post - Path:
/v1/terminal/readers/{reader}/process_payment_intent
@spec process_setup_intent( client :: Stripe.t(), reader :: binary(), params :: %{ optional(:customer_consent_collected) => boolean(), optional(:expand) => [binary()], optional(:setup_intent) => binary() }, opts :: Keyword.t() ) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Initiates a setup intent flow on a Reader.
Details
- Method:
post - Path:
/v1/terminal/readers/{reader}/process_setup_intent
@spec retrieve( client :: Stripe.t(), reader :: binary(), params :: %{optional(:expand) => [binary()]}, opts :: Keyword.t() ) :: {:ok, t() | Stripe.DeletedTerminal.Reader.t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Retrieves a Reader object.
Details
- Method:
get - Path:
/v1/terminal/readers/{reader}
@spec set_reader_display( client :: Stripe.t(), reader :: binary(), params :: %{ optional(:cart) => cart(), optional(:expand) => [binary()], optional(:type) => :cart }, opts :: Keyword.t() ) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Sets reader display to show cart details.
Details
- Method:
post - Path:
/v1/terminal/readers/{reader}/set_reader_display
@spec update( client :: Stripe.t(), reader :: binary(), params :: %{ optional(:expand) => [binary()], optional(:label) => binary(), optional(:metadata) => %{optional(binary()) => binary()} | binary() }, opts :: Keyword.t() ) :: {:ok, t() | Stripe.DeletedTerminal.Reader.t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Updates a Reader object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Details
- Method:
post - Path:
/v1/terminal/readers/{reader}