#msms-invoice
1 messages · Page 1 of 1 (latest)
Hmm I think add_invoice_items.price object is optional? You can provide add_invoice_items.price_data instead: https://stripe.com/docs/api/subscriptions/create#create_subscription-add_invoice_items-price_data
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
That is possible however that will create a new Price object and I am trying not to use any Price object
I found another way - I create the subscription with:
collection_method: 'send_invoice',
payment_behavior: 'default_incomplete',
days_until_due: 0
}```
then edit the invoice, finalize it, then confirm payment
Yeah that works too!