Wow a simple functionality still not developed. If seller accounts handle payments separately then don't allow multiple sellers in the same cart. I am sending the code snippet in case you don't know. 4 years and still not implemented
if (previousSeller!=currentSeller) {
return 0;
}