#stripe-connect-platform_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1287865663406346290
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Having trouble looking up the receipt, but as far as I know our user-facing receipts don't mention application fees. Can you tell me more about what the overcharge looked like in this case?
Yeah, so let's say it is a $200 product and our customer creates a Payment Link in our dashboard and we have a 1% fee.
We hard-code a $2.00 fee.
Customer uses a 50% off coupon bringing the price to $100.
Stripe overcharges the customer $2.00 instead of $1.00 and attributes it to us with a line that says:
Name-of-my-app application fee $2.00
Then if I refund it, it becomes -$2.00
bad example. We need a $300 product with a $100 coupon. It shows a -$3.00 charge after the refund and then a positive $1.00 "application fee". So customer sees a wrong charge negative, a wrong application fee but the $3.00 - $1.00 is the correct $2.00 charge. ๐ญ
the invoice never says "refund"
Ideally, we would charge the correct amount on the discounted charge just like you (Stripe) does
Do you understand the main issue of 1-time charges needing not a % but a application_fee_amount which leads to a bad use case of coupon use and always charging the wrong application fee...which then requires a refund and creates a confusing invoice?
Gotcha, unfortunately we don't have functionality at the moment to reduce the application fee amount based on a discount like that. I think you can partially reverse the transfer to yourself.
Where is this invoice coming from? Is this a Stripe generated invoice from the other user's dashboard or something?
a Stripe generated invoice from the other user's dashboard. I am viewing as and seeing how confusing this is going to be for them
The line item that says "Application fee" is not the application fee. ๐ฆ It is the refund amount
I can give you a screenshot. The waters are muddied since I ended up discovering this error due to a different error where I was overcharging by 3x. :(. So it's confusing but here..
Gotcha, and how are you doing this refund at the moment? I think that with direct charges the best thing to do would be some flavor of what you are doing now. The only alternative that I am aware of would be to do a separate charges and transfers flow where all of the funds go to your platform and you send them funds after that
Payment amount
$155.00 USD
Fees
- $11.77 USD
Stripe processing fees - $7.12 USD
Foobar App application fee - $16.20 USD
Application fees
$11.55 USD
Net amount
$143.23 USD
I can't get a screenshot
The actual application fee I am charging is not $16.20. It is not $11.55. It is $16.20 - $11.55.
Oh, or maybe you could change to capture_method='manual', which would mean Checkout would only place a hold on the funds, at which point you could adjust the application fee and fully capture the funds. That would restrict your available PMs but may be a smoother experience
So basically no where will it list the actual fee we charge. It will show the overcharged amount as a negative, then the amount refund without designating it as a refund, just a positive amount to offset the incorrect overcharge. This is so ugly.
OK, alll so messy. In general, I put a redirect on the Payment Link so we get that and I get the session ID. So then what is the best flow to determine if a coupon was used and what the final amount actually paid was?
session = Stripe::Checkout::Session.retrieve(session_id, {
stripe_account: stripe_account_id
})
Yes, the Checkout Session object will have an amount_total field for the amount that was paid after taxes and discounts and a total_details.amount_discount field for the amount discounted on the session.
OK, I will do my best. I don't imagine there is a way to change the text of the line item on an invoice?
And there is no way to just have one line item with the actual charge (i.e. the difference between the original overcharge and the refund amount ?
Unfortunately not as far as I am aware. I will file feedback for this but at the moment I don't think Stripe has a way to recognize the situation internally and make it clearer.
Also I am not as familiar with the dashboard, can you tell me how you get to these invoices? That will help me file this in the right place.
Find the Connected account. View dashbaord as. It's maybe not the invoice. Maybe I am using the wrong term.
"Payment breakdown"
Example above. The actual application fee is $4.55. No where does it say $4.55
It just has the overcharge, then I refunded and the refund amout says "Application fee" so the difference is $4..55. Who comes up with this??? ๐
The numbers don't make sense because $16.20 is 3x a 3% fee due to a different error I needed to fix but you hopefully get the point.
a 3% fee that is supposed to be on $155 since a $25 coupon was used but it was a 3% of $180 which is the full price.
Anyway, OK, I will do my best. Thank you.
Gotcha, thank you for the detail. Apologies we didn't have a better way to do this at the moment