#ssbb-fee-

1 messages ยท Page 1 of 1 (latest)

visual storm
#

I'm not sure I understand. Where is the math not adding up? Are you seeing something different somewhere?

tacit badge
#

So in my example after refunding 514.93 - Net is $500.01.

So I feel like maybe I should round up in this case? (eg 1.011 rounded to 1.02)

tacit badge
#

So if I'll just round 514.9330 to 514.94 (UP) then it works. But not sure since there is no any docs about this (the only I found saying it should be rounded to nearest which does not work here)

visual storm
#

I believe that if there is tax involved, then the rounding may always round up, but I'm not 100% sure. Is there any reason you couldn't simply calculate the difference between the refund amount and the desired Net amount?

tacit badge
#

No, tax not involved here. I just thinking maybe it works in reverse for stripe fee refunds.

not sure I 100% understand what you mean in next message ๐Ÿค”

visual storm
#

Ah, wait. I see. That wouldn't be possible without sometimes ending up with these fractional amounts.

I think you're on the right track with always rounding up on refunds, where necessary.

#

Wish I had a better answer for you

tacit badge
#

Yeah I understand it's not 100% dev question so thank you for not ignoring it ๐Ÿ‘

I tested with some different amounts and seems to work good