If you have online payments enabled for your online forms, you can add product items to your form and then set one or more of them to be mandatory (required). This means people must select that product item (or one product from a group of mandatory items) before they can submit your form.
Please see these related support articles: