#nikoschns_error

1 messages ¡ Page 1 of 1 (latest)

steep canyonBOT
#

👋 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.

old crystal
#

Hello! Can you share the req_xxx ID for the request that returns that error?

hidden ember
#

req_ohyYv2Y7n7kd1O

old crystal
#

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
hidden ember
#

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.

old crystal
#

They are informative yes, but they also need to match the total of the payment as per the error

hidden ember
#

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

steep canyonBOT
old crystal
hidden ember
#

Nice, thank you

slate wedge
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!