This calls for a setup similar to a marketplace ecosystem, where the money directly goes to the seller’s bank account, and you can take a cut from it too, if necessary.
To sum it up in a nutshell, yes this can be done by integrating payment solutions such as Stripe that offer this functionality, but this will require a good amount of custom coded functionality to make this work.