payment module with quantities for multiple items

payment module with quantities for multiple items

How to create a payment module with quantities for multiple items?

I'd like to have multi select checkboxes with a field where input quantity insead of the checkboxes. I know this is not possible. somebody found a solution or a workaround?