Can't submit Order form that contains free items

We built a registration form that has paid and free items and the form submission requires a credit card to be enter when only free items are selected and then the submission fails with a response from the credit card processor that the amount can't be zero. How can the form be submitted with free items without entering credit card info? It's integrated with

Replies are visible only to logged in members with an active subscription.