Need to modify Pay API for a single product

I would like to add more than one product on a single page, each with its own button. Is there a way to modify the pay.jsw to add a second product? Then, what would need to be changed on the client-side? Thanks for any help!

import wixPay from ‘wix-pay-backend’;
export function createMyPayment() {
let paymentInfo = {
“items”: [
{
name: “Product 1”,
price: 9.99
}
],
amount: 9.99
}
return wixPay.createPayment(paymentInfo);
}

If you have been using this tutorial. Collect Payments for a Single Product
Then why use it if you want to add more products to it?

Why not just use another tutorial like this. Collect Payments for Products in a Database Collection

Thank you. I have 6 services to sell with different pricing . I would just like each service to have it’s own button for checkout, all on the same page. I could use a data collection, but I would think a modification to the above code is much easier.