#aaron_api
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/1387098303719801023
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- aaron_api, 15 hours ago, 114 messages
Hi there
Can you tell me more about what is unexpected here?
The error is correct that these totals must be equal
yup the problem is that the preview that we submit with the exact same params is successful while the submission to create the credit note is failing with validation
If you read the thread that was spun up yesterday, there is a undocumented stripe validation that uses the pre discounted amount we pass in as params.
This pre discounted amount is used on your end to calculate the total amount to refund.
The problem is that the prediscounted amount used to calculate on your end is 1 cent different than what I'm expecting.
Ah, can you share the preview request ID from before the erroring request?
I spoke to someone on here last time and apparently stripe hides the preview requests from our UI so I can't seem to find it
I don't see it here but I am definitely making the request
Okay give me a second to find it and investigate.
heres the response that I'm getting from the preview
it usually will fail if I pass in the incorrect amount with something like ` The sum of refunds, credit amount, and out of band amount ($217.75) must equal the credit note `post_payment_amount` ($217.76).
Okay yeah as far as I can tell this seems like a bug due to our underlying preview calculation logic.
So best next step here is for me to file a ticket internally to get our Eng team to look at this.
So I'm going to send you a DM with a link to open a ticket where we can continue this conversation over email so the Eng team can take a look.
Hello @modern karma, we have sent you a direct message, please check it at https://discord.com/channels/@me/1387105471957045382
- ๐The message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.
Let me know when you have submitted that.
hey sorry was a bit afk
okay sounds good. our company has high priority support with your team so I will likely go through our channel. However, I'm wondering if there is a link to this chat that we can provide to them?
You can just use the Discord thread URL: https://discord.com/channels/841573134531821608/1387098303719801023
This is a public conversation
sounds great. thank you!
Sure!
Hey also, can you confirm is this a bug on the previewing calculation logic or actual submission?
On our side it is successfully previewing but failing to create.
I'm not quite sure if it is a bug with the preview calculation or the calculation on the actual creation request -- your preview clearly is showing a total of $217.76 but then the actual calculation is $217.75. These should match each other as far as I know but I'm not actually sure which calculation here is "incorrect".