#ptman

1 messages · Page 1 of 1 (latest)

wet oysterBOT
fallen kraken
eternal hawk
#

right

#

can I get that returned from a payment intent capture operation as well?

fallen kraken
#

Yes, you can expand latest_charge.balance_transaction when making the confirm call and look at the fee on it in the intent that is returned

eternal hawk
#

I'm using the Go api

#

does Fee include the ApplicationFee? so I need to deduct that or calculate the fee without it from FeeDetails?

fallen kraken
#

Yes our Go library supports all of the fields in our API

#

No, ApplicationFee is different from the Stripe fee

#

The application fee is the platform fee that you charge someone else. That field is the fee that Stripe is charging you

eternal hawk
#

excellent

#

paymentintent.Capture() return *PaymentIntent, but that doesn't have the member LatestCharge, so how do I get access to that?

fallen kraken
#

If you are using an older API version you may want to use the other version of that code that is on the page that I sent. The one that uses Charges[0].BalanceTransation.Fee

eternal hawk
#

Ah, that explains, I'm still at v73

#

I expected this to be old stuff that I just hadn't encountered, but apparently it's brand new

fallen kraken
eternal hawk
#

based on my testing LatestCharge.BalanceTransaction.Fee does include the ApplicationFee