I need advice for best sales model for payment process. Basically my system is kind of market place. There is two kind of transaction.
- Customer will pay full money to administrator.
Customer will pay full money to administrator.
- Administrator will take some fee and release payment to seller.
Administrator will take some fee and release payment to seller.
So for the single order, we need to do two transaction. But Paypal offers Delayed Chained payment option to do in single transaction as below.
But I am not sure other major payment gateways are proving this option or not. So I want to design the database compatibly for both.
Note: I want to notify customer after paid at this time I don't know who will be seller. After certain point of time administrator will choose the seller and admin will release the pay to seller. Here I want send notification for both seller and customer.
From above, I need to use unique order_id for both transaction. So should i split the order into two and store as two records or can I manage it in single order row. Advice me reliable and better design pattern for this two kind of situation.
What I tried !
Help me out!