#DaanVDH

1 messages · Page 1 of 1 (latest)

cunning birchBOT
thick kelp
fringe echo
#

Is this country code the same on that is delivered by the user? Because at least in test mode the paymentMethod will still be created if the country delivered by the user doesn't match the actual country.

#

Or is this different for live mode?

thick kelp
#

When do you mean by the country delivered by the user? Do you mean the billing address country?

fringe echo
#

Yes

thick kelp
#

card.country is different then billing address country - card.country is the country the card was issued from, which doesn't necessarily match the billing address of the customer

fringe echo
#

Ahhh alright, that clears it up for me, thanks!

#

Follow up, is there a way to get the stripe transaction fees after a payment Intent is confirmed?

thick kelp
fringe echo
#

Thanks!

#

So something like this should do the trick right?

    var total int64
    ts := pi.Charges.Data[0].BalanceTransaction.FeeDetails
    for _, t := range ts {
        total += t.Amount
    }
    return total
#

using the old Go SDK version

thick kelp
#

Yup! (as long as you're on an older API version)