#jarcher

1 messages · Page 1 of 1 (latest)

spring krakenBOT
neon lagoon
rough horizon
#

so to get the net fees for a payment intent, we'd have to grab all the charges for that payment intent, expand to include balance transaction, then calculate the net

neon lagoon
#

you should only have one successful charge for the PaymentIntent, unless you're doing multi-capture?

rough horizon
#

sure one positive charge, but to account for refunds there may be multiple charges?

neon lagoon
#

have you taken a look at the pricing for your country and payment methods that you're using to see if fees are being charged for refunds?

rough horizon
#

The payment processing fees from the original charge are not returned

neon lagoon
#

yeah, so all you would need to do is to retrieve the original charge? I'm a bit confused as to why refunds come into play here

rough horizon
#

I'd like to be able to deterministically tell the "net revenue" for each payment intent. It should be as simple as amount_captured - amount_refunded - stripe_fees.

neon lagoon
spring krakenBOT
rough horizon
#

gotcha. Thank you for now! have a great day