payment methods

I have two different kind of products on my site. I want one of those types of products too only accept a specific payment method while the other type only accepts a different specific payment method as well. Can this be done?