Invoices

Create an invoice

The createInvoice() method takes a CreateInvoiceRequest object as its only parameter.

$request = $stripe->invoices->createInvoiceRequest("customer_id");
$stripe->invoices->createInvoice($request);

Retrieve an invoice

$invoice = $stripe->invoices->getInvoice("invoice_id");

Update an invoice

$stripe->invoices->updateInvoice("invoice_id", null, false, "New description.");

Pay an invoice

$stripe->invoices->payInvoice("invoice_id");

List invoices

$invoices = $stripe->invoices->listInvoices();