#ferdinand-invoicing

1 messages · Page 1 of 1 (latest)

brazen notch
amber stag
#

hi @brazen notch thank you for the response.. i follow your shared doc. because it wrote price is optional. so my code with this

$invoiceItem = $stripe->invoiceItems->create(
[
'customer' => 'cus_xxx'
]
);

but got error this

You must specify a currency, or specify a price or price_data.

so "price" need to set?

brazen notch
#

Did you try setting amount?

amber stag
#

its that means that we need to set the product name?

brazen notch
#

I'm not sure what you're actually asking me here

#

Yes, setting amount will create an ad-hoc Price object

amber stag
#

ah sorry. i repert

#

sorry i mean "repeat"

brazen notch