supports( 'tokenization' ) && is_checkout(); if ( $display_tokenization ) { $this->tokenization_script(); if ( is_user_logged_in() ) { $this->saved_payment_methods(); } $this->use_new_payment_method_checkbox(); } $this->form(); if ( $display_tokenization ) { $this->save_payment_method_checkbox(); } } /** * Outputs fields for entering credit card information. * @since 2.6.0 */ public function form() { $html = ''; $fields = array(); $cvc_field = '
'; $default_fields = array( 'card-number-field' => '
', 'card-expiry-field' => '
' ); if ( ! $this->supports( 'credit_card_form_cvc_on_saved_method' ) ) { $default_fields['card-cvc-field'] = $cvc_field; } $fields = wp_parse_args( $fields, apply_filters( 'woocommerce_credit_card_form_fields', $default_fields, $this->id ) ); ?> supports( 'credit_card_form_cvc_on_saved_method' ) ) { echo ''; } } }