I am building a Laravel website that facilitates services for our users. A user can post a service on the site and other users can book/pay for that service through the site.
Easy Part: The website is free for anyone to sign up, but I also want to have Premium accounts with extra features that a user can pay a monthly subscription for. I feel like Laravel Cashier can work great for this.
Hard Part: User_A can post services online (ie offer a cooking class for $30). User_B can book/pay User_A for a service (ie. pay $30 for a cooking class)
How can I collect payment from User_B, and deposit that payment to User_A? (there would be some logic so the website keeps a cut/fee)
For an easy example we are doing something similar to Uber. A passenger pays for a ride, and a drive gets paid to drive the passenger. It is done through Uber and Uber keeps 25%.
Does anyone have any advice on how this can be done in Laravel?
This is a tricky problem and I'm having trouble finding a way to do this.
Much appreciated!
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire