#nikoschns_error
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1458047634315939954
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello! Can you share the req_xxx ID for the request that returns that error?
req_ohyYv2Y7n7kd1O
What is unclear about the error? The amount totals do not add up and they are required to:
- You passed
amount: 2360 - Your
amount_details[line_items]total is 2400
I thought that the amount_details was an informative field. The unit_cost or quantity are not mandatory, so I am wondering why any validation happens.
They are informative yes, but they also need to match the total of the payment as per the error
So, that means that I have to update the amount_details in all the payment_intent updates, e.g. partial capture, partial refunds, etc? otherwise validation will never pass
I don't think amount_details is relevant for refunds? But yes, the amount_details total needs to match the partial capture amount: https://docs.stripe.com/payments/payment-line-items?capture=separate#set-line-items-during-capture
Nice, thank you
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!