Class: Terminal

Terminal(options) → {Terminal}

new Terminal(options) → {Terminal}

Initialize Stripe Terminal
Parameters:
Name Type Description
options Object Options to initiate Stripe Terminal
Source:
Returns:
Instance of Stripe Terminal
Type
Terminal

Methods

collectPayment(clientSecret)

Collect a payment for a PaymentIntent
Parameters:
Name Type Description
clientSecret string See Stripe Intents API reference for details
Source:

connectionStatus()

Get the current connection status.
Source:

connectReader(serialNumber)

Connect to a reader.
Parameters:
Name Type Description
serialNumber string The serial number of the reader that you want to connect to.
Source:

discoverReaders()

Begins discovering readers matching the given configuration.
Source:

off(eventName, handle)

Remove event listener.
Parameters:
Name Type Description
eventName String to match subscription.
handle function function associated with event.
Source:

on(eventName, callback)

Listen for an event. The following events are supported: - readers - error
Parameters:
Name Type Description
eventName String to subscribe to.
callback function triggered on the event.
Source:

setTokenProvider(url)

Set token provider
Parameters:
Name Type Description
url string API URL to get the token
Source: