} return $this->is_payment_processed; } /** * Check if form has errors before payment processing. * * @since 1.9.5 * * @return bool */ private function is_form_processed(): bool { // Bail in case there are form processing errors. if ( ! empty( wpforms()->obj( 'process' )->errors[ $this->form_id ] ) ) { return false; } if ( ! $this->is_card_field_visibility_ok() ) { return false; } return $this->is_form_ok(); } /** * Check form settings, fields, etc. * * @since 1.9.5 * * @return bool */ private function is_form_ok(): bool {