Combining 2 Lists

So we have a requirement to process payments through a credit card provider,

We have a list of Payments and a list of virtual one-time use credit card details, it doesn’t matter which cc is used for which payment.
Payments will be loaded via a CSV into a DT what’s the best way of assigning a CC to each payment?

or group of values that sum to 24,999

So I don’t think I was clear when explaining

I have a list of transactions with cost values assigned.
I have a list of Credit Card Numbers each one can pay £24,999

I need to assign a card to a group of transactions that add up to but does not exceed £24,999

Any ideas?