Menu

Gravity Forms eWAY

Gravity Forms eWAY

create online payment forms with Gravity Forms and eWAY

Mix standard and recurring?

Sometimes, you want to have both standard and recurring payments as options on the same form. This can be accommodated by both the Free and Pro add-ons, with a little care.

Free add-on

The Free add-on uses a special Recurring field for recurring payments. By adding that field and making it visible, any charges will be sent to the Recurring Payments gateway for automatic recurring payments.

The Recurring field can be made conditional, like many other fields in Gravity Forms. Here, we’re making it conditional on another field (say, radio buttons) having the value “Recurring”:

Recurring field with condition
Recurring field with condition

Conversely, you can add a Product field for standard payments and make it conditional on the same field not having the value “Recurring”:

Product field with condition
Product field with condition

Pro add-on

The Pro add-on is a little different. Instead of having a special Recurring field, it lets you put together regular fields to build your recurring payments configuration — ultimately much more flexible than trying to shoehorn it into a special field. You can have the one Product field and use it for both standard and recurring payments. You can still show/hide fields just like above.

Next, you create two feeds to send the transaction details to eWAY: one Direct Connection or Responsive Shared Page feed, and one Recurring Payments feed.

Two feeds for one form
Two feeds for one form

You can then set each feed to be conditional on a field in the form, just like above:

Feed condition for regular monthly payments
Feed condition for regular monthly payments

If you use a Responsive Shared Page for the standard payments, you will also need to make the Credit Card field conditional, because it isn’t needed for Responsive Shared Pages:

Credit Card field with condition
Credit Card field with condition