#aaron_api

1 messages ยท Page 1 of 1 (latest)

tall widgetBOT
#

๐Ÿ‘‹ 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.

fierce pulsar
#

Hi there

#

Can you tell me more about what is unexpected here?

#

The error is correct that these totals must be equal

modern karma
#

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.

fierce pulsar
#

Ah, can you share the preview request ID from before the erroring request?

modern karma
#

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

fierce pulsar
#

Okay give me a second to find it and investigate.

modern karma
#

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

fierce pulsar
#

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.

tall widgetBOT
#

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.
fierce pulsar
#

Let me know when you have submitted that.

modern karma
#

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?

fierce pulsar
#

This is a public conversation

modern karma
#

sounds great. thank you!

fierce pulsar
#

Sure!

modern karma
#

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.

fierce pulsar
#

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