You can create different payment gateways and connect it to your forms.
If you want to connect your form to different payment methods, you should create separate forms and redirect them to the related form after submitting the first one.
For example:
You have an order form with two options to pay:
Option 1: Pay cash
Option 2: Online payment gateway
In this case, you need to create 3 forms;
The first one would be a form with 2 options to ask your customers to choose their preference of how they want to pay.
The second form is a form with the calculation of the total price (form A).
And, the last form is a form that is connected to your payment gateway to redirect the users to pay online (form B).
You can hide the submit button for the first form to avoid submitting twice. Use this CSS code to do it:
.formaloo__submit-button{display: none !important;}
Now, you should set logic as following:
If the answer is option 1, Cash,
After submit go to the link
URL of form A
and add another condition:
If the answer is option 2, credit card,
After submit go to the link
URL of form B