#Santiago Bouso
1 messages · Page 1 of 1 (latest)
hi there. What's the question exactly?
Hi, Karllekko! Let me write it complete for you:
So, the situation is:
- Let's say we have a CS (Checkout Session) with two products, USD 50 each, both have a Tax Rate, it's USD 10 of taxes
- We also add an extra line item as "Processing fees" (with NO Tax Rate), because we are working with Connect Accounts
- So it's something like:
Product A --------- 50
Product B --------- 50
Processing fees --- 5
Taxes ------------- 10
TOTAL ------------- 115
This, in out system, is an "Order", where we would like to be able to register partial payments, for example, a cash payment... so let's say the customer pays 30 USD in cash
We would like to know if there is a way to add this to the CS... like, a negative value product or something like that? We know we CANNOT use coupons applied to the whole CS because of the way yo calculate taxes, we already tried that and you applied the discount in a way that modifies the taxes value, I already had several talks here with different support guys regarding this "taxes + discounts problem" and the conclusion was "No, because of the way we apply discounts, that's not possible"
So, the question is: is there any way to decrease the value of a CS, besides coupons?
hmm, no, I don't think there is. You can't have negative line items on a CheckoutSession. In general it does not support partial payments either. I don't think you can fit this round peg into this square hole. The only option I can see is to have the cart and display/breakdown of line items and tax built into your own page and do payments directly with a PaymentIntent for the customer's chosen amount (https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements) , I don't see how you'd do this with Checkout.
Another option might be to use a one off Invoice and the hosted Invoice page instead of Checkout, since Invoice can have a negative line item.
https://stripe.com/docs/invoicing/integration
https://stripe.com/docs/invoicing/hosted-invoice-page
https://stripe.com/docs/api/invoiceitems/create#create_invoiceitem-amount (can be negtive e.g -7000)