#nerder

1 messages · Page 1 of 1 (latest)

covert heartBOT
plucky mesa
#

Hi there,
The amount subscription may varies from a billing period to another (due to upgrade, downgrade, proration...) so we set a percentage. While the Invoice represents a final subscription Amount for a period, we computed the fee_amount according to the percentage set in the Subscription level

bitter sun
#

Ok

#

in my use case, I need to support subscriptions, in that case, is safe for me to use application_fee_percent, in the other case instead I want the customer to be able to buy one-off products as well and I would like to apply the same fee percentage, but since invoice don't have it I should do the calculation myself and then only set the amount i want to take out?

#

While I understand the subscription use case (which may vary), I don't really understand what blocks Stripe to expose application_fee_percent in the invoice call and keep the API consistent

#

In the end even if is not supported is just what I would do to calculate the application_fee_amount to pass to the invoice

plucky mesa
#

You can update the Subscription invoice application_fee_amount only if you are using Stripe Connect.
In your case you can add an item to the invoice that reflect the fee_amount you want to compute it and it can't be represented as a percentage

bitter sun
#

Yes yes, probably I'm not explaining clearly. We are using connect for some time already, we already support subscriptions and we correctly apply the fee_percentage. Now we would like to support a new use case, let the customer buy one-off products (not in a subscription) and we would like to apply the fee to that transaction too.

#

To make it extra clear, our connected accounts are gyms

#

so the subscription represents for instance the monthly membership, instead the one-off product represent a drop-in or a bundle of drop-ins (ie: 10 classes)

plucky mesa