This is my first time to trying to entegrate payment system. I have two mobile apps. First one is including client which who wants any on demand service, second one is who provides these services.
这是我第一次尝试涉足支付系统。我有两个手机应用程序。第一个是包括谁想要任何按需服务的客户,第二个是谁提供这些服务。
First thing is provider's app (worker app) has to payment system that they purchase membership for monthly. So, they can serve any service to clients after purchase. (I think this is simple to solve 'cause so many document already has writen and simple logic.)
第一件事是供应商的应用程序(工人应用程序)必须支付系统,他们每月购买会员。因此,他们可以在购买后为客户提供任何服务。(我认为这很容易解决,因为太多文档已经有了书写和简单的逻辑。)
Second thing is about client's app. Logic is like this; Any client who wants a service, creates a request from Firebase. They decide the amount. (like i need a plumber for 30$ for an hour). After request, in worker app any service provider takes this request. Then they serve to client for request. Until this time in my code I managed this perfectly. But I can't figure out payment system.
第二件事是关于客户的应用程序。逻辑是这样的:任何想要服务的客户端都会创建来自Firebase的请求。他们决定金额。(就像我需要一名水管工,一小时30美元)。在请求之后,在工人应用程序中,任何服务提供商都接受该请求。然后,他们向客户提供请求。直到这一次,在我的代码中,我完美地处理了这一点。但我搞不懂支付系统。
How is it spose to be ? Shall we take the money from client before job or on going service request or after completing service?
Other side of picture, lets say we managed the client payment, how can store worker's money and show them in the UI ?
At the end of the day, If worker wants to draw their money? How is this work ?
它是怎样的斯派塞?我们应该在工作前、服务请求时或服务完成后向客户收取费用?另一方面,假设我们管理了客户付款,如何存储工人的钱并在UI中显示?在一天结束的时候,如果工人想要取他们的钱?这是怎么回事?
I'm waiting for the answers of those who are experienced this before, I just can't understand the logic, thank you so much.
我在等待那些经历过这一切的人的答案,我只是不明白其中的逻辑,非常感谢。
更多回答
优秀答案推荐
我是一名优秀的程序员,十分优秀!