#amoomoo
1 messages · Page 1 of 1 (latest)
Hello amoomoo, we'll be with you shortly! Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
• amoomoo, 4 days ago, 3 messages
• amoomoo, 5 days ago, 11 messages
Hello
When you say "negative invoice method" do you mean you want to create Invoice Items with a negative amount?
yeah, or like a subscription with a negative starting balance or smth
to give the user a discount
point being, I prefer not to use the coupon strategy in the docs
Okay then yeah you can either create an Invoice Item with negative amount (https://stripe.com/docs/api/invoiceitems/create#create_invoiceitem-amount) or you could set a Customer Credit Balance (https://stripe.com/docs/billing/customer/balance)
Both of those would reduce the cost of the next Invoice
Any way to do this without an invoice, and just through the Subscription instead?
No you would have to apply a coupon to the Subscription
i see, thanks!
I have a follow-up question, if you're still around.
I want to get a payment intent from an invoice, how do I go about that?
The PaymentIntent is a property on the Invoice: https://stripe.com/docs/api/invoices/object#invoice_object-payment_intent and you can expand it (see: https://stripe.com/docs/expand) to see the full object.
i have a bunch of custom paymentIntent params set right now, how do I set those fields for the invoice when creating the invoice?
I'm not sure exactly what you mean by that.
Can you explain more what you are trying to do?
for example, I have this payment intent right now, and I have a lot of metadata I'm passing into it.
If i get my paymentIntent from the invoice instead, how do I set that metadata?
or the "confirm" fields, and etc
You would have to update the PaymentIntent itself if you want to set metadata on it directly. You can't do it via the Invoice.