@hallow sundial pressed the 🔌 API button in #help to ask a question:
Question
I'm attempting to setup a terminal integration following the instructions here:
https://docs.stripe.com/terminal/quickstart
The part I keep getting stuck on is creating the payment intent. I first create an invoice like this:
let terminalInvoice = await stripe.invoices.create({
customer: stripeCustomer.id,
automatic_tax: {enabled: true},
}
}, {stripeAccount: process.env.connected_account});
await stripe.invoiceItems.create({
description: item.description,
customer: stripeCustomer.id,
unit_amount: item.amount,
quantity: item.quantity,
Related Request ID(s)
req_IBqGbRGdznzZBy
What have you already attempted?
When I create the invoice I finalize the invoice and get the payment intent like this:
terminalInvoice = await stripe.invoices.finalizeInvoice(terminalInvoice.id, {stripeAccount: process.env.connected_account})
console.log(terminalInvoice, 'invoice now');
const reader = await stripe.terminal.readers.processPaymentIntent\(reader\_id, {payment\_intent\: terminalInvoice.payment\_intent}, {stripeAccount\: process.env.connected\_account}\)
return res.json\({paymentIntent\: terminalInvoice.payment\_intent}\);
However I get this error:
PaymentIntent must accept an in-person payment method.
I nee