Ensure that an object exists and is not empty
Object to check
Creates an instance of StripeTerminalPlugin with the given options.
const terminal = await StripeTerminalPlugin.create({
fetchConnectionToken: async () => {
const resp = await fetch('https://your-backend.dev/token', {
method: 'POST'
})
const data = await resp.json()
return data.secret
},
onUnexpectedReaderDisconnect: () => {
// handle reader disconnect
}
})
StripeTerminalPlugin options.
Generated using TypeDoc
This should not be used directly. It will not behave correctly when using
Internet
andBoth
discovery methodsThis should not be used directly. It will not behave correctly when using
Internet
andBoth
discovery methods