#nuke8

1 messages ยท Page 1 of 1 (latest)

soft badgeBOT
blissful hollow
#

Hello! Are the amounts correct in the API?

slim orbit
#

No my CI caught it using the API

#

This was working correctly a few weeks ago but something seemed to chave changed recently

blissful hollow
#

Did you catch this on a Balance Transaction? If so can you give me the ID?

slim orbit
#

I can give you a ch_ and re_ IDs I don't think we log the txn ones

#

but I can dig in to get those as well if that helps

blissful hollow
#

The Charge ID would be fine. ๐Ÿ™‚

#

I can get to the other stuff from there.

slim orbit
#

ch_3NkCVhCofpzuxz9t0iQHRWu3

blissful hollow
#

Thanks! Looking...

slim orbit
#

I have one from July 30th with the correct amounts if you would like a comparison

blissful hollow
#

I think this is happening because there are three separate Refunds, and we had to round up for two of those, which is why there's an extra cent in there.

#

If you had issued a single Refund this wouldn't have been an issue as far as I can tell.

slim orbit
#

The amounts used to be correct though

$2.35
$2.35
$1.47

Now they are:

$2.34
$2.34
$1.48

Seems like something changed which incorrectly is rounding the amounts. Yes, if we issued a single refund it wouldn't be an issue but my customers don't always do that ๐Ÿ˜ข . We added this test to make sure we did all the math correctly when issuing multiple refunds but noticed Stripe was calculating incorrectly.

#

Here is basically the same transaction just a month ago:

ch_3NZmPjCofpzuxz9t0nP34tO6

blissful hollow
#

Those seem different at first glance... refund_application_fee is different in the Refund requests, for example, but let me look closer.

slim orbit
#

Yea the difference is the application fee is refunded but that shouldn't impact the stripe fee

#

Here is one without the refund_application_fee on July 30th :

ch_3NZmPVCofpzuxz9t1zxP3gc4

blissful hollow
#

We're investigating further now, hang on. ๐Ÿ™‚

slim orbit
#

Thank you

blissful hollow
#

Okay, looks like we are making some changes behind the scenes, but as far as I can tell the intent is not to change the actual calculated amounts. I'm flagging internally now, but I recommend you write in to support with details about the two Charges (the one before with the correct amounts and the one after with the incorrect amounts) so you can get a longer running support ticket going. It's unlikely I'll have a resolution for you today here on Discord.