$_requires_credit_card

Description

The $_requires_credit_card property allows you to easily define if a credit card field is required by a payment add-on. If this is set to true, the user will not be able to create any payment feeds without a credit card field present in the form.

Properties

Class: GFPaymentAddOn
Access: protected
Type: boolean
Defaults to: false

Usage

class ExamplePaymentAddOn extends GFPaymentAddOn {
    protected $_requires_credit_card = true;
}

Location

includes/addon/class-gf-payment-addon.php

Used By

GFPaymentAddOn::before_delete_field()
GFPaymentAddOn::feed_list_message()
GFPaymentAddOn::init_admin()