#VinceECT-lineitems
1 messages · Page 1 of 1 (latest)
@craggy glacier hi! how exactly are you integrating, are you using Checkout or Invoices, or something else? In general yes, you can just add a line item with any name you wish to display some tax you've pre-calculated I would think.
Thanks for the reply and you are indeed correct. I'm using Checkout and creating a Session so I can just add line items for Shipping and Taxes. But my one remaining problem is I can't do the same for discounts as that would involve a negative amount. If you have any ideas for that I would be very grateful.
hmm let me check, I thought we supported negative line items in Checkout but maybe not
yeah, we don't actually, so the only option is to create and apply a coupon to the Session to apply the discount https://stripe.com/docs/payments/checkout/discounts so you'd maybe want to craft an ad-hoc Coupon object that would have the effect of taking off the amount you calculated (using https://stripe.com/docs/api/coupons/create#create_coupon-amount_off instead of percent_off makes that easier)
I'm looking at this now but it seems that I have to create a coupon object for every discount that a customer is given. Then my dashboard is going to be full of unwanted coupons, no? I am asking in case I am missing something as where you say, "ad-hoc Coupon" is it possible to just set a discount amount when creating a session?