#gCooL-bt

1 messages · Page 1 of 1 (latest)

twin ingot
#

for that you need a Charge object, and Invoice objects have a charge field which is the Charge they processed

#

and no you can't get the fee until after the Invoice is paid and the Charge object is created, but you can predict the fee since it's static and our pricing is on our website and you can write code in test mode to verify your predictions in codee

fresh adder
#

thanks you for the fast response. How i can get transaction id from the charge object or payment intent id. I cannot find it in the doc.

twin ingot
#

the doc I linked describes the process

#

so like it's invoice.charge.balance_transaction.fee_details . make sure you read the link I posted to understand how to leverage the expand feature of the API here!

fresh adder
#

Jesus.... I can swear I was reading the charge object couple of times, but when you share it i manage to see the "balance_transaction": "txn_1032HU2eZvKYlo2CEPtcnUvl".

#

thank you

twin ingot
#

great!