#pitcherojbh

1 messages · Page 1 of 1 (latest)

short jungleBOT
jovial swan
#

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?

whole oracle
#

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?

short jungleBOT
whole oracle
#

So it seems like we are using the worng methid, is there an easier way to create a subscription with a start fee?

jovial swan
#

Making sure I understand correctly, are you adding both the one-time price and the recurring price to a single Subscription?

whole oracle
#

That looks a nicer way to mage thigs, would we have to create the invoice first?

jovial swan
#

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.

whole oracle
#

That's a lot easier, thank you

#

Would we still need to specify the application_fee_percent?

jovial swan
#

Yup, you'd set that for the Subscription, and that will be applied across all items.

whole oracle
#

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?

jovial swan
#

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.

whole oracle
#

Or is the application_fee_percent jsut for the actual subscriptin payments?

#

yes so we would need to updste the subscription with the new lower percentage?