How to Create a Basic Multiple Payment Form

November 26, 2021

The first thing that you’ll need to do is identify how many payment methods you would like to use.  In this example, we’ll have two payment methods, PayPal Standard and Purchase Order.

In our case, we will have a total of three forms:

  1. Main Form – the primary form that will house the two forms
  2. PayPal Standard Form – will be the 1st payment method
  3. Purchase Order Form – will be the 2nd payment method

Step 1: Build the First Form

  1. Go to your Form Builder and add a Single Choice element and label it as Payment Method.
    basic-multi-payment-form-payment-method basic-multi-payment-form-payment-method-jpg

    This will serve as the option for the users to choose what payment method they prefer. You could use other fields, although we only want users to choose one type of payment method, so you can choose either a radio button or a dropdown.

  2. We will then add two Iframe Embed widgets where the payment forms PayPal Standard Form and Purchase Order Form will be embedded or loaded.
    basic-multi-payment-form-iframe-embed-widgets basic-multi-payment-form-iframe-embed-widgets-jpg

We will leave the main form with that for now.

Step 2: Set Up the First Payment Form (PayPal Standard)

We’ll create a new form and set up a PayPal Standard payment gateway. Under the Payments tab, choose PayPal Standard and add it to your form.

basic-multi-payment-form-paypal-standard basic-multi-payment-form-paypal-standard-jpg

To learn more about setting up the payment integrations, you can start with these guides:

Step 3: Set Up the Second Payment Form (Purchase Order)

Just like step 2, we will create another payment form. This time we will use Purchase Order as the payment gateway.

basic-multi-payment-form-purchase-order basic-multi-payment-form-purchase-order-jpg

The Purchase Order payment gateway is not integrated with any 3rd party payment services. This is usually used if you want your users to pay via wire transfer or deposit in your bank account. You can use a Paragraph element to instruct the users where to send the payments. 

Step 4: Get the URL of the Payment Forms

The form URL can be found under the Form Builder’s Publish tab.

form-builder-form-url-copy form-builder-form-url-copy-jpg

Step 5: Embed the Payment Forms in the Main Form

Now go back to the main form set the URLs for each of the Iframe Embed widgets.

  1. Open the Widget Settings panel by clicking on the widget’s wand icon.
  2. Paste the PayPal Statndard Form’s URL in the Frame URL field under the General tab.
    basic-multi-payment-iframe-embed basic-multi-payment-iframe-embed-2-jpg
  3. Do the same on the other widget for the Purchase Order Form.

Step 6: Set Up the Conditions

We only want to display the payment form depending on the choice the user made on the radio button. To do that, we will use the Show/Hide Field condition. If you need to dive deeper into this topic, here’s a guide on How to Show or Hide Fields Base on User’s Answer.

  1. Click Settings at the top then Conditions on the left. Here, you can create a Show/Hide Field condition.
    form-builder-conditions
  2. Now create two conditions that will show the specific Iframe Embed widget based on the selected payment method:
    • If the Payment Method is equal to “PayPal”, then show the PayPal Form iframe.
      basic-multi-payment-form-paypal-condition
    • If the Payment Method is equal to “Purchase Order”, then show the Purchase Order Form iframe.
      basic-multi-payment-form-purchase-order-condition

You now have forms that allow you to have multiple payment options. 

Make sure to remove the submit button from your main form. Your users will submit the entries from one of the payment forms.

You can see how my main form works on this form link: https://www.jotform.com/213133454169958

For a more complex form, you can read on this user guide on how to update a multiple payment form using the multiple payment form from the Form Gallery: How to Update the Multiple Payment Form

Another alternative option is to redirect users to a different form URL based on the selected payment method. Here’s a guide on how to Change the Thank You Page URL Based on a Condition.

Was this guide helpful?
Contact Support:

Our customer support team is available 24/7 and our average response time is between one to two hours.
Our team can be contacted via:

Support Forum: https://www.jotform.com/answers/

Contact Jotform Support: https://www.jotform.com/contact/

Send Comment:

Jotform Avatar
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Comments: