#pitcherojbh
1 messages · Page 1 of 1 (latest)
Hi @whole oracle , apologies for the delay 👋 I'm not sure I'm grasping what you mean by "the application fee is not right on the transaction". Can you elaborate on that?
yeah so we have an invoice that is £25 , which is a product set up fee and we create an ongoing payment that is £25 per month. This set up fee and the first payment are taken together at a charge of £50.
The application fee for this transaction looks to be using what we set in setApplicationFeePercent for the totsl payment. Not the on going fee
application_fee_amount should be for the set up fee and application_fee_percent should be fore the ongoign payment right?
So it seems like we are using the worng methid, is there an easier way to create a subscription with a start fee?
Making sure I understand correctly, are you adding both the one-time price and the recurring price to a single Subscription?
Yeah, you can include the one-time fee in the add_invoice_items field when creating the Subscription:
https://stripe.com/docs/api/subscriptions/create#create_subscription-add_invoice_items
but that should use the application_fee_percent you set on the Subscription.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
That looks a nicer way to mage thigs, would we have to create the invoice first?
Nope, the one time prices added to add_invoice_items are included on the first Invoice that is generated for the Subscription, and then they don't appear again, so you won't need to create a separate Invoice for the one-time fees.
That's a lot easier, thank you
Would we still need to specify the application_fee_percent?
Yup, you'd set that for the Subscription, and that will be applied across all items.
but if we use the percentage, it would not be the same for the second payment?
so if we use the percentage the first charge will be for the set up fee and the first payment. But then the percentage for the second month will be too much right?
I'm not sure I'm following. The percentage will be consistent, but that will cause the actual application fee amount to shift when the amount of the Subscription payment reduces after the first payment.