#Abhishek-lineitems
1 messages · Page 1 of 1 (latest)
We have a payment modal on our platform where we show the users the details like quantity, product_amount, discount code, discount and total amount to pay after discount. When I pass the total amount after discount with total quantity, the amount in stripe in becoming (total_amount_after_discount * quantity). How to fix this?
the amount in stripe in becoming (total_amount_after_discount * quantity)
what would you expect it to be instead?
Total amount after discount. First image shows my payment modal where user have to pay SGD 5400 after discount, but when I am creating checkout session, in stripe it shows 5400 for each quantity, and total amount is SGD 27000.
And also CVV field value should not be visible. How can I do that?
I don't really follow, I'm sorry
anyway maybe just pass quantity:1 with your final amount since you do all the calculation yourself and are just using Checkout for the final payment amount?
as for the CVC, there's no option to mask it as like "***" if that's what you mean, we don't support that
Hey @broken basin apologies for the delay, we're getting caught up here.
As my teammate mentioned, it is expected that we will multiply the quantity by the unit amount to get the total. If you don't want us to do this, then the easiest option is to pass a quantity of 1 though this may cause a slight discrepancy between what your modal shows and what our checkout page shows.