Affiliate plugin and wp ecommerce

Has anyone used the plugin with wp ecommerce or another other commmerce plugin. I want to be able to pay affiliates a % for actual sales that happen as a result of them driving a new customer to the site. Has anyone done that? If so, how wit this affiliate plugin?