#odin_smash - Application Fee Percent

1 messages · Page 1 of 1 (latest)

quasi hawk
#

Sorry meant to thread that reply, I suck at Discord 🤷‍♂️

tough radish
#

No worries, happens to all of us

#

So this fee gets applied for each billing period

quasi hawk
#

I see. That makes sense, but I'm confused by the actual behavior I'm seeing. In this case, I am creating subscriptions, through subscription schedules, like so:

Stripe::SubscriptionSchedule.create(
  customer: "cus_1234",
  start_date: "now",
  end_behavior: "cancel",
  default_settings: {
    application_fee_percent: 3.5,
    on_behalf_of: "act_1234",
    transfer_data: {
      destination: "act_1234"
    }
  },
  phases: [
    {
      iterations: 6,
      items: [
        { price: "pr_1234" }
      ]
    }
  ]
)

But on the first charge/iteration for pr_1234 , amount is $480.00, we're taking $100.8 (21%) in fees (3.5 * 6 = 21). I'm expecting to only take 3.5% ($16.8) per iteration. So I'm assuming the fee needs to be set under the phases attribute to get that to work properly? It's not clear in the docs, the difference between where you set the fee, to me.

tough radish
#

Yes I see, thank you for the example.

#

And I agree, the exact application of these fees in this scenario could be documented better. I will try to reproduce this behavior myself so I can discuss it with my team and see if we can suggest a revision. To deal with your situation, I would try moving the application_fee_percent parameter to the phases and testing to see if the amount captured by the platform makes sense.

quasi hawk
#

Ok. Thanks for the info.