#cade-invoice-ach

1 messages · Page 1 of 1 (latest)

merry pecanBOT
wraith spoke
#

cade-invoice-ach

halcyon egret
#

Is this just an option that i set?

#

const invoice = await stripe.invoices.create({
customer: stripeCustomerId,
collection_method: 'send_invoice',
days_until_due: 0,
auto_advance: true,
description: "Pay by Card",
metadata: {
projectId: projectId,
paymentType: paymentType,
submittedBy: submittedBy,
},
});

const invoiceItem = await stripe.invoiceItems.create({
  customer: stripeCustomerId,
  amount: amount,
  currency: 'usd',
  description: description,
  invoice: invoice.id,
});
wraith spoke
#

That's a parameter you put in your code as a developer yes

halcyon egret
#

so i need to add payment_settings:["ach_debit"]

#

under create invoice

wraith spoke
#

kind of. That's not what the parameter I linked you to is called so you would carefully look at that doc first

#

(please no picture of code)

halcyon egret
#

payment_settings: {
payment_method_types: ['ach_debit'],
},

#

Just making sure this is correct? Weve had issues with this one

wraith spoke
#

you want us_bank_account instead of ach_debit but yes otherwise