#barjinder - customer credit

1 messages · Page 1 of 1 (latest)

warm sand
#

Actually taking a quick step back, can you tell me a bit about what your users are buying and which Stripe products you are using for this flow (Checkout, Elements, etc)

flint citrus
#

So I have 2 different types of products on my platform.
A. Services that we offer
B. Users can pay bills on our platform
Now I want to provide 20% cashback to user everytime they use service (product A). This cashback would be showed in their wallet. But they can use this cashback to only pay for bills (product B)

#

I am still trying to figure out best solution, so haven't decided on which product to use.

warm sand
#

Thank you for the clarification. What are these bills in Stripe terms? Are you creating Subscriptions or Invoices for these or are you using something else?
Also my apologies for dropping off of this thread, this server is busier than usual today.

flint citrus
#

ah. those would utility bills, our platform will accept the payment and then pay to the actual service provider

warm sand
#

Gotcha, I ams till trying to understand this in Stripe terms though. Do you know what Stripe objects you are using to charge here?

flint citrus
#

ok.. the term bills might be confusing. i think we would accept the payment as if they are paying for a product through stripe

warm sand
#

Ah, is this your initial scoping out of what Stripe stuff to use at all? Or do you have a current Stripe integration that already does some of this?

flint citrus
#

This is the initial scoping. As I said, we are just figuring out the best solution for this.

warm sand
#

Thank you for clarifying again. So will these mostly be recurring payments, like you will be charging some amount every month? Or is this more of you charging for one time services? Or maybe a mix of both?

flint citrus
#

This would be a one time service

warm sand
#

Do you know if you want to use a Stripe Hosted page or if you want to have your own custom checkout page on your site?

#

Unfortunately our flow that allows you to create your own custom page does not support customer balances like that. So you could follow this guide and then you would need to implement logic on your side to track how much credit the user has and reduce the prices that you pass in to our PaymentIntents as appropriate https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements

#

Is this all helpful/clear so far?

flint citrus
#

Ok. I think that makes sense. So we will use a custom checkout page and yes, we can create our own logic.

#

With this approach, we can reduce the prices for customer, but when customer pays, we still want to pay the vendor full amount, so can we add that extra amount from our own balance when paying the vendor.
Use case scenario

  1. Customer pays 100$ for a service and our platform gives him 20$ credit.
  2. Now customer pays for another service for 50$. But since he decides to use 20$ credit, we will only charge him 30$.
  3. The remaining 20$ would be paid through the company funds in our stripe account.
  4. The third party vendor (who provides the service) will get 50$ in his account in single transaction.

Does that makes sense and possible to do with stripe (even if it includes creating logic on our own end)?

dull island
#

hi there 👋 taking over for @warm sand. If you're tracking the customer's balance on your end, the above makes sense. You would just charge the customer for the amount (minus the balance) and create a transfer to the third party connected account for the full amount. Totally doable as far as I can tell.

flint citrus
#

Great. thank you so much.

#

Just to confirm, would it be possible to automate the process.. like charging customer 30$, but at the same time transferring 50$ to the third party account automatically