#thomasnevink

1 messages · Page 1 of 1 (latest)

cerulean shardBOT
wide wolf
#

hello! can you share the PaymentIntent id?

tulip sage
#

pi_3O0H09JnRs6ZWiPy0ffZy83H

wide wolf
tulip sage
#

The amount field is long type , so basically long? orderAmount = Convert.ToInt64(14.99) * 100; orderAmount evaluates to 1400

#

Could you explain me the calculations of Net and Fee

#

The final total is $ 15.00 and not $ 14.99 which is what I intend it to be

wide wolf
#

sorry i don't quite understand what you need me to explain about the calculations of net and fee?

tulip sage
#

Could you help me with a workaround around my Amount calculation

wide wolf
#

from our end, we're seeing that you're passing in $15. Why that's the case, you need to troubleshoot your own code. From a quick scan, Convert.ToInt64 might be rounding the amount, have you checked that?

tulip sage
#

Let me check that

#

Apologies from my end, I feel I should use type casting with long instead of using Convert.ToInt64