#EinsteinWafula

1 messages · Page 1 of 1 (latest)

vestal trellisBOT
mild saddle
#

Hello, to do this you will need to adjust your application fee before the payment is fully captured. Can you tell me a bit more about your payment flow? Like are you using a custom page or a stripe hosted page for payments and are you doing one time payments or subscriptions?

limber harness
#

Hi @mild saddle! We are using a custom page in a react native app. We then call an API from our backend attaching the payment information as a payload. Then use the stripe SDK for nodejs to handle payments.

#

And we are doing one time payments

mild saddle
#

Gotcha, in that case this should be pretty straightforward. At some point you need to create or update the payment intent to reflect the amount after the promotion code

#

So at that point you can calculate your reduced application fee and set that on the payment intent

#

Or rather, that is how it would work for 1-10% discounts. So if you are charging $100 and the user gets $5 off, you would only set your application fee to $5 so that the user still gets to keep $90

#

If you discount lower than 10% you would need to note how much less than 90% the user got and then transfer them that amount after the payment has succeeded.

#

Is that helpful?

limber harness
#

Let me give a scenario:
The service will cost $100. Then I give a customer a 30% discount meaning they will pay $70.
I still want the service provider to get $90. I might need to make up the difference to pay the service provider. Is this possible?

mild saddle
#

Yes, so you would take a $0 applicaiton fee and send the account $20 separately after the payment is done

#

You can do that as long as you have $20 in your account balance

vestal trellisBOT