I assume you're talking about generating more than one product key within our ready-made purchase page example. The way to generate more than 1 product key (for more than 1 product/version) is to modify the PaymentSettings file, specifically the SendPKeys() function.
In that function you'll see how the keys are generated and you can modify it to generate keys for all the products the customer ordered.