Ecommerce and sub accounts

How does ecommerce handle sub accounts? Is there a way to make a payment and have it end up in a different financial sub account based on the fact it is a math course of a physic course for example?

How does edx.org handles it for courses from institution X1 and institution X2 for example? Is there a field in ecommerce that can be set so that the payment processor knows how to handle the payment and put the funds in the proper sub account?