I am going through 'Transaction properties' with this page
I am viewing the node 'receipt' in the Transaction according to shopify :A transaction receipt attached to the transaction by the gateway.
The value of this field depends on which gateway the shop is using.
In the transaction when "gateway" = "shopify_payments" We got the fee under the Reciept => balance_transaction => fee
When "gateway" = "paypal" We got the Fee under receipt => PaymentInfo => FeeAmount
Is there any generic node under the transaction through which we can pull the fee.
There is no standardized syntax for data in the receipt field, this field is populated by the gateway and it differs for each gateway. Some gateways don't include the fee data here at all. In this case the best option is to parse out this data based on the particular syntax used by each gateway.