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!