#ferdinand-invoicing
1 messages · Page 1 of 1 (latest)
Hey! Sure, you can just pass amount when creating the Invoice Item: https://stripe.com/docs/api/invoiceitems/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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?
Did you try setting amount?
if i set amount. i has on price API isn't ? from this doc https://stripe.com/docs/api/prices/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
if it correct. to create a price id. i need to create product id from this doc https://stripe.com/docs/api/products/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
its that means that we need to set the product name?
I'm not sure what you're actually asking me here
Yes, setting amount will create an ad-hoc Price object
ah sorry. i repert
sorry i mean "repeat"
setting amount from this API https://stripe.com/docs/api/prices/create ?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
No, when creating the Invoice Item: https://stripe.com/docs/api/invoiceitems/create#create_invoiceitem-amount
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.