Gitters is a tool for new Developers to learn how to use Git and Contribute to open source projects.
const terminal = StripeTerminal.create({
onFetchConnectionToken: server.fetchConnectionToken,
});
const result = await terminal.discoverReaders();
const reader = result.discoveredReaders[0];
await terminal.connectReader(reader);
const item = {
description: 'High Growth Handbook',
amount: 2000,
quantity: 1,
};
const cart = {
lineItems: [item],
currency: 'usd',
};
terminal.setReaderDisplay({ type: 'cart', cart });