What filters does the plugin have?

Developers can customise the behaviour of the plugin through filter hooks. There are many useful filter hooks supported by this plugin, and by Gravity Forms itself.

Here’s some example code that uses these filter hooks:

gfeway_code_description

  • string $message
  • string $code
  • return: string

Change the eWAY Rapid API error messages.

gfeway_form_is_eway

  • bool $is_eway_form — defaults to true
  • int $form_id
  • return: bool

Free add-on: Tell Gravity Forms eWAY to ignore a form.

gfeway_invoice_desc

  • string $description
  • array $form
  • return: string

Change the invoice description.

gfeway_invoice_ref

  • string $invoice_ref
  • array $form
  • return: string

Change the invoice reference.

gfeway_invoice_trans_number

  • string $transaction_number
  • array $form
  • return: string

Change the invoice transaction reference. NB: must remain unique for each eWAY account!

gfeway_invoice_option1

  • string $option1
  • array $form
  • return: string

Set the option1 field (one-off payments).

gfeway_invoice_option2

  • string $option2
  • array $form
  • return: string

Set the option2 field (one-off payments).

gfeway_invoice_option3

  • string $option3
  • array $form
  • return: string

Set the option3 field (one-off payments).

gfeway_invoice_cust_comments

  • string $comments
  • array $form
  • return: string

Set customer comments field (recurring payments).

gfeway_recurring_periods

  • array $periods — default list is ‘weekly’, ‘fortnightly’, ‘monthly’, ‘quarterly’, ‘yearly’
  • int $form_id
  • GF_Field $field
  • return: array

Free add-on: filter the available recurring periods (from ‘weekly’, ‘fortnightly’, ‘monthly’, ‘quarterly’, ‘yearly’).