#imad-top ups
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
could you please elaborate more? are you talking about your customers?
yes
you can create a customer balance transaction https://stripe.com/docs/api/customer_balance_transactions/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
but it really depends on your business use case how you get/or not the money from the customer first and then add it to their credit balance
one scenario could be something like:
1- creating a PaymentIntent with the desired Amount
2- collecting that amount
3- using the webhooks you could create a customer balance transaction with a negative amount
4- on their next invoice that amount will be used automatically in the invoice / if it's a one-off payment you'll have to create another customer balance transaction this time with a positive amount
the real use cases is to get commissioms for every transaction between users
so should i work with trasactions or separate it to
1-receive payment
2-make a top-up after taking my commission
when you say between users do you mean you have a merchant on your platform and a customer who is purchasing from that merchant using your platform?
yes exactly
Hi ๐ my teammate needed to step away, please bear with me a moment while I catch up on the context here.
Alright, so if you have a scenario where you have customers and third-parties providing goods/services, have you started looking into Stripe Connect?
but i need to freeze the payment for the merchant until the customer get his product
the product is service of renting acommodations so untill he finish his renting time
Sorry, I'm confused, are you saying that's a reason you can't use Connect?
Connect is designed for scenarios where you facilitate transactions between two parties (such as marketplaces, or ride sharing services).
https://stripe.com/connect
thank you so much i get now i will use connect
Happy to help! Let us know if you run into any problems implementing that.