/** * Adds the enable Card Security Code form fields. Intuit QBMS has a * stringent CSC fraud setting which when enabled will decline any * credit card transactions that are missing the CSC, including tokenized * transaction. Since not everyone will necessarily have that enabled, * we add a "Require CSC" form field for those who do. * * @since 1.0 * @see SV_WC_Payment_Gateway::add_csc_form_fields() * @param array $form_fields gateway form fields * @return array $form_fields gateway form fields */ protected function add_csc_form_fields($form_fields) { $form_fields = parent::add_csc_form_fields($form_fields); $form_fields['require_csc'] = array('title' => __('Require Card Verification', 'woocommerce-gateway-intuit-qbms'), 'label' => __('Require the Card Security Code (CV2) for all transactions', 'woocommerce-gateway-intuit-qbms'), 'desc_tip' => __('Enabling this field will require the CSC even for tokenized transactions, and will disable support for WooCommerce Subscriptions and WooCommerce Pre-Orders. Enable this if you have configured your merchant settings to Reject Transaction if CSC is not available.', 'woocommerce-gateway-intuit-qbms'), 'type' => 'checkbox', 'default' => 'no'); return $form_fields; }