#Piercy-amount-payment-intent
1 messages ยท Page 1 of 1 (latest)
Yes, server side
gotcha and when you say net amount you mean the total amount (including the fees) correct?
It would be the total amount, minus the fees. Heres an example: pi_3Lop6b2n5ss6lX9C1of3TtF2
We're not worried about he currency conversion for the moment, were just trying to work stuff out to make sure were going in the right direction, development wise.
We're after the net which is ยฃ72.44 in this case.
ah okay okay
So when you retrieve the payment intent
https://stripe.com/docs/api/payment_intents/retrieve
the object should have an amount property
https://stripe.com/docs/api/payment_intents/object#payment_intent_object-amount
The amount would include the fees though?
So as you can see in the above screenshot, amount would be 7680 (or maybe 9000), but the net ends up at 7244.
It doesn't include the fees
The PaymentIntent was created with that amount set
https://dashboard.stripe.com/test/logs/req_erYcDK99AoTpD5
I think the net is including the fees
I'm confused, im asking if there is a way to get the net value?
So the net amount is reflected on a balance transaction and not on the payment intent
https://stripe.com/docs/api/balance_transactions/object#balance_transaction_object-net
You could do something like
expand: ['charges.data.balance_transaction'],
});```
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Ah nice, ill check that out, I knew it would be in there somewhere. Thanks!
NP! ๐ Sorry for the confusion earlier
No problem, finance stuff is linguistically confusing ๐ net vs total vs amounts, its hard work!
๐ ๐