#collin54111 - connect invoice & fees
1 messages · Page 1 of 1 (latest)
hey there!
You can set an application fee to be kept by your platform, but on invoices it needs to be specified as an amount (not a percent):
https://stripe.com/docs/api/invoices/create#create_invoice-application_fee_amount
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You'd calculate that amount yourself using the desired percentage
Can I do that within the stripe platform, or would I have to build a separate platform
What do you mean? That's part of the API request to create the invoice
Oh I see, I misunderstood. Sorry, I'm relatively new to software development
So I could create a variable, say "x" and say x=.2 *amount paid then assign the value of "application_fee_amount": x
?
You'd do that in your code, yes, then send the amount you calculate as the application_fee_amount
How can I set that to go anytime a connected account sends an invoice?
Ah, you can't do that, this is for when you create the invoice as the platform
Ah shoot