#alpamayo-application-fee

1 messages ยท Page 1 of 1 (latest)

lean pagoda
trim pawn
#

I found the exchange_rate field, however when I fetch the BalanceTransaction object, it's set has None

#

BalanceTransaction ID : 'txn_3JpXuMR9UNzHHOIV0T8RI2Nj'

#

44 CHF

#

9.36 fees (CHF)

#

My use case : I need to generate an invoice (in our backend), in EUR according to 9.36 CHF

lean pagoda
#

Good question, thanks for the detail. Still looking in to this, will get back to you in a bit with what I find

#

It looks like your account has actually received that charge in CHF

#

Is that the currency you want and you are asking what it will be if it is something else?

trim pawn
#

Yes, the connected account is setup with CHF

#

Therefore the application fee is in CHF

#

However, the platform account is in EUR

#

(we use direct charges)

#

The exchange rate used, if applicable, for this transaction

lean pagoda
#

Thank you for the clarification. Seeing what will happen here

trim pawn
#

We need to create an invoice for our merchand for our fees.
We always create invoice in EUR, that's why I'm looking for that is the exchange rate used by Stripe to convert 9.36CHF --> x EUR

lean pagoda
#

So the exchange_rate field on the balance transaction is where you should see this. Looking in to why you are not seeing it here

trim pawn
#

I found it ๐Ÿ˜ฎ

#

Maybe a bug ?!
I found it from an other endpoint

#

First screen : through stripe.ApplicationFee(charge='ch_3JpZmXR9UNzHHOIV1m2uY9Lq', expand=['data.balance_transaction'])

#

Second screen (what's why I'm here) : through stripe.BalanceTransaction(expand=['data.source.payment_intent.invoice'], stripe_connect_id=XXX)

lean pagoda
#

So from my understanding the one with the exchange_rate info is for the application fee that you got. The other is for the connected account charging the customer

#

So that is what you are looking for?

trim pawn
#

I found what I'm looking for

#

However for the same object there is one endpoint without the information

#

I'm wondering if it's a bug from your side

wet tangle
#

catching up here, don't think there is a bug here, can you sum up what your latest question is @trim pawn

trim pawn
#

I'm done thanks, just take a look at your response from stripe.BalanceTransaction I really think that you have a problem ๐Ÿ™‚

wet tangle
#

no I'm asking if you can summarize what the discussion was so I can look into

I really think that you have a problem

#

what Charge / BalanceTransaction do I start at?

#

what do I look for?

#

let me just read the whole thread

trim pawn
#

I was looking for an exchange_rate in order to create an invoice in our backend, related to a connected account which sell in CHF and our platform was in EUR, with direct charges, so application_fee is converted from CHF to EUR.

#

With the endpoint stripe.ApplicationFee(charge='ch_3JpZmXR9UNzHHOIV1m2uY9Lq', expand=['data.balance_transaction'])
I wasn't able to fetch the exchange rate (see my screen)

#

With stripe.BalanceTransaction(expand=['data.source.payment_intent.invoice'], stripe_connect_id=XXX)
I was able to

wet tangle
#

what BT were you fetching in the second part, can you link me to the BalanceTransaction ID?

#

writing out a stream of thought to mostly aggregate what I'm looking at
You created a "Direct Charge" CheckoutSession for 44.00 CHF on to a Connect account, collected ApplicationFee for 9.35 CHF as the Platform (writing mroe)

trim pawn
#

txn_3JpZmXR9UNzHHOIV1OdpBSQv

#

ch_3JpZmXR9UNzHHOIV1m2uY9Lq

wet tangle
#

no screenshots pls, the raw pasted id, thanks

trim pawn
#

transactions come from stripe.BalanceTransaction endpoint*

wet tangle
#

yes so that Direct Charge CheckoutSession resulted in Charge ch_3JpZmXR9UNzHHOIV1m2uY9Lq on the Connect account, which is an account based in CH/Switzerland. There is no exchange rate conversion here, the Swiss Connect account presented and settled in CHF.

Your Platform collected an ApplicationFee from this Direct Charge. Your Platform is based in FR. The Application fee was fee_1JpZmmR9UNzHHOIVqJ3SyTfv

that AppFee was converted from CHF to EUR from what I see.

And that lines up with what you are seeing. There is an exchange rate on the ApplicationFee's BalanceTransaction from CHF->EUR. There is no exchange rate on BalanceTransaction for the CHF->CHF settlement on the Connect acct

trim pawn
#

Ok!

#

Thanks for explanation

#

Best