#mahendra-checkout-applicationfeemath
1 messages · Page 1 of 1 (latest)
@sly cloak application_fee_percent only works for Subscriptions. For one-time payments you have to do the math first and pass application_fee_amount instead
mahendra-checkout-applicationfeemath
ok where can I add could you tell me on that second product which i use for one time payment
but it's something that I want that fee only one time when subscription is created not after
Just making sure I understand your question: you are creating a subscription with a one time fee, so you want the application fee to be higher on the first payment but not the later ones? And you want it to be higher than what the percent of the one-time fee would be?
No I'm creating subscription for recurring payment but on first payment I'm taking extra setup fee so that why I setup two price on checkout one is for recurring and other for one time.
But If I directly add application_fee for complete payment than on next payment that price is high
so how I fix this like can I add seprate application_fee on second product
And also you're half right about application_fee I'm kind on that secnirio
Unfortunately you can't define application fee on subscriptions, even for one time fees on them
So I think you will need to set the application_fee_percent such that the total application fee matches what you want
And then update your subscription after that first payment so it ihas the application_fee_percent that you want going forward
I will put in a feedback request as I can definitely see why this would be useful, but for now this is the workaround