Menu

Gravity Forms eWAY

Gravity Forms eWAY

create online payment forms with Gravity Forms and eWAY

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:

  1. gfeway_code_description

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

    Change the eWAY Rapid API error messages.

  2. gfeway_customer_ref

    • string $customer_ref
    • array $form
    • array $entry (only available for Responsive Shared Page)
    • return: string

    Change the customer reference (mostly useful for Recurring Payments).

  3. gfeway_form_is_eway

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

    Free add-on: Return false to tell Gravity Forms eWAY to ignore a form.

  4. gfeway_invoice_amount

    • float $amount
    • array $form
    • array $entry (only available for Responsive Shared Page)
    • return: string

    Change the invoice amount.

  5. gfeway_invoice_cust_comments

    • string $comments
    • array $form
    • array $entry (only available for Responsive Shared Page)
    • return: string

    Set customer comments field (Recurring Payments).

  6. gfeway_invoice_desc

    • string $description
    • array $form
    • array $entry (only available for Responsive Shared Page)
    • return: string

    Change the invoice description.

  7. gfeway_invoice_ref

    • string $invoice_ref
    • array $form
    • array $entry (only available for Responsive Shared Page)
    • return: string

    Change the invoice reference.

  8. gfeway_invoice_trans_number

    • string $transaction_number
    • array $form
    • array $entry (only available for Responsive Shared Page)
    • return: string

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

  9. 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’).

  10. gfeway_save_card_number_value

    • string $card_numer
    • array $entry
    • array $form
    • return: string

    Allow further modification of obfuscated card numbers returned from Rapid API with Client Side Encryption.