The createInvoiceItem()
method takes a CreateInvoiceItemRequest
object as its only parameter.
$request = $stripe->invoiceItems->createInvoiceItemRequest("customer_id", 350, "usd");
$stripe->invoiceItems->createInvoiceItem($requet);
$item = $stripe->invoiceItems->getInvoiceItem("invoice_item_id");
$stripe->invoiceItems->updateInvoiceItem("invoice_item_id", 500, "New description.");
$stripe->invoiceItems->deleteInvoiceItem("invoice_item_id");
$items = $stripe->invoiceItems->listInvoiceItems();