stripe.invoices.sendinvoice is not a function - Stripe Billing (NodeJS)

匿名 (未验证) 提交于 2019-12-03 01:41:02

问题:

I am implementing the following code for sending invoices to customers: From https://stripe.com/docs/billing/invoices/sending

stripe.invoices.sendInvoice(invoice.id, function(err, invoice) {   // asynchronously called }); 

However, I get this error message:

TypeError: stripe.invoices.sendInvoice is not a function

What is the problem here? Thank you for any help!

回答1:

You most likely need to update your stripe-node dependency, as support for these invoice features was added quite recently.

https://github.com/stripe/stripe-node/blob/master/CHANGELOG.md#6140---2018-11-09



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!