How to set application fee in Stripe API calls separately for card and bank?

I have a web app (clicflo.com).
I have integrated Stripe API in my Bubble app.
I’m using the Stripe API call “https://api.stripe.com/v1/payment_links” to create payment links.
In which I’m using the parameters “application_fee_amount” and “application_fee_percent” to take application fee from connected accounts.
And for example; I (clicflo admin) has set app_fee_percent = 3

What’s happening in my case now:

  1. For example a clicflo user creates a payment link for $100.
  2. Now, this link is shared to 2 customers.
  3. One customer pays to that link via card.
  4. 2nd customer pays via bank transfer.
  5. In both cases(card and bank) the application fee shall be deducted 3%.

What I want:

  1. Clicflo admin should be able to set application_fee_percent_for_card = 3% and application_fee_percent_for_bank = 1% separately in stripe API call.
  2. So, when the 1st customer shall pay via card, the application fee should be 3%.
  3. And when the 2nd customer shall pay via bank then the application fee should be 1%.

If anyone can help in this matter.
Thanks.

Do you know at the time of creating the API call whether the customer will pay with card or bank, and if so, how do you know it, what are you using in the UI that denotes that or is it stored in the database somewhere?

No, I don’t know.
If I knew whether the customer would pay with a card or bank, then I could set a separate application fee as desired.

I understand the limitation lies with Stripe in enabling this feature. I have already confirmed this with Stripe support, and their response was that it is not currently possible. However, I’m asking here to see if anyone knows of any alternative methods to achieve this.

It is not possible to run an API call with a value that is required (ie: the application percentage fee) and make that dynamic without First knowing how the user is going to pay. If you knew how the user was going to pay, then when you run the API call it is simple to dynamically change the application fee percentage to match that of the payment method.

If you need this function, you need to implement as part of your Bubble app UI/UX a way for the user to stipulate how they are going to pay, and then you can run the API call to set the application fee accordingly as well as set the payment method through the API call as well so that they do not use an alternative payment method than the one original selected in your Bubble app UI/UX

You will have to create a new price on Stripe for the Fees with the desired amount (like 10% of the other price) and add it to the checkout.

It was good idea to do it. And I have tried this, but unfortunately Stripe API call doesn’t support to update “application fee” parameter in the payment link created.

What you are trying to do is not possible unless you know how the user will pay before you create api call to enable payment

What you mean is that I should know how the user will pay, before creating the payment link.

How can I ask the user that tell me your payment method? And then I’ll create the payment link.

Checkboxes…but I don’t know your UI/UX so it is hard to tell how to adjust, but if I were building this for a client who required this functionality I’d put together the UI/UX to enable it.

Okay, Thanks for your suggestions.

Hi charleslcts, thanks for your reply. I’m trying another approach.

How are you doing it?

I’m creating separate payment links for card and bank.

This topic was automatically closed after 70 days. New replies are no longer allowed.