The createInvoice()
method takes a CreateInvoiceRequest
object as its only parameter.
$request = $stripe->invoices->createInvoiceRequest("customer_id");
$stripe->invoices->createInvoice($request);
$invoice = $stripe->invoices->getInvoice("invoice_id");
$stripe->invoices->updateInvoice("invoice_id", null, false, "New description.");
$stripe->invoices->payInvoice("invoice_id");
$invoices = $stripe->invoices->listInvoices();