#ktstorm-invoice-avalara
1 messages ยท Page 1 of 1 (latest)
Hi there ๐ do you have an example of a request where you were unable to set the application_fee_amount as you had hoped? I'd like to take a closer look at the state of things when that request was made.
yep!
trying to add it to invoice: https://dashboard.stripe.com/test/events/evt_1ObXORBCxN7wn3Lgh29W8FFD
"Error handling event invoice.updated: You can't apply an application_fee on an invoice with invoice items that weren't created by your application."
trying to add it to payment_intent:
https://dashboard.stripe.com/test/events/evt_3ObX4iBCxN7wn3Lg1qbzw2q9
"Error handling event payment_intent.created: Some of the parameters you provided (application_fee_amount) cannot be used when modifying a PaymentIntent that was created by an invoice. You can try again without those parameters."
if you can't see those let me know and I'll copy paste the events
That's alright. I was trying to take a closer look at the request (it wasn't an error I'd heard of before), but if you're blocked from updating the application_fee_amount on the Invoice then I don't think the Destination Charge flow will work for you, and that you would need to use a Separate Charges and Transfers flow instead.
Where the Invoice does not directly assess an application fee, but you have your code create a Transfer to move the funds to the Connected Account:
https://stripe.com/docs/api/transfers/create
When doing so you can specify the amount that you want to transfer.
ktstorm-invoice-avalara
Okay interesting. I think the problem we're seeing with that flow is when it comes to refunds. If we want to keep the transaction fee for refunds then we have to reverse the transfer and then separately charge the connect account for the fee amount but it seems like this incurs an additional 1% fee on that charge and isn't an option internationally. So how do we charge the connected accounts for the fees internationally?
@scarlet sluice sadly there isn't really a way in this case
tragic ๐ okay, well thank you guys for your time and insight! really appreciate being able to get some verification on this stuff