title: How can I override core Woocommerce plugin function?
body: <p>I'm trying to override the output HTML from the Woocommerce Stripe plugin. How would I go about doing that? I've read some articles and the docs about action hooks and filters but I believe those are only for the Woocommerce plugin alone and not the Woo/Stripe extension plugin.  If a hook or filter is the solution what would that look like? I could modify core files or use JS but those aren't real viable solutions at all...</p>
  
  <p>The file I'm trying to modify is located in: </p>
  
  <p><strong>plugins/woocommerce-gateway-stripe/includes/class-wc-gateway-stripe.php</strong></p>
  
  <p>This is the block of markup I'm looking to modify within that file: </p>
  
  <pre><code>/**
   * Payment form on checkout page
   */
  public function payment_fields() {
      $checked = 1;
      ?&gt;
      &lt;fieldset&gt;
          &lt;?php
              if ( $this-&gt;description ) {
                  echo wpautop( esc_html( $this-&gt;description ) );
              }
              if ( $this-&gt;saved_cards &amp;&amp; is_user_logged_in() &amp;&amp; ( $customer_id = get_user_meta( get_current_user_id(), '_stripe_customer_id', true ) ) &amp;&amp; is_string( $customer_id ) &amp;&amp; ( $cards = $this-&gt;get_saved_cards( $customer_id ) ) ) {
                  ?&gt;
                  &lt;p class="form-row form-row-wide"&gt;
                      &lt;a class="button" style="float:right;" href="&lt;?php echo apply_filters( 'wc_stripe_manage_saved_cards_url', get_permalink( get_option( 'woocommerce_myaccount_page_id' ) ) ); ?&gt;#saved-cards"&gt;&lt;?php _e( 'Manage cards', 'woocommerce-gateway-stripe' ); ?&gt;&lt;/a&gt;
                      &lt;?php if ( $cards ) : ?&gt;
                          &lt;?php foreach ( (array) $cards as $card ) : ?&gt;
                              &lt;label for="stripe_card_&lt;?php echo $card-&gt;id; ?&gt;"&gt;
                                  &lt;input type="radio" id="stripe_card_&lt;?php echo $card-&gt;id; ?&gt;" name="stripe_card_id" value="&lt;?php echo $card-&gt;id; ?&gt;" &lt;?php checked( $checked, 1 ) ?&gt; /&gt;
                                  &lt;?php printf( __( '%s card ending in %s (Expires %s/%s)', 'woocommerce-gateway-stripe' ), (isset( $card-&gt;type ) ? $card-&gt;type : $card-&gt;brand ), $card-&gt;last4, $card-&gt;exp_month, $card-&gt;exp_year ); ?&gt;
                              &lt;/label&gt;
                              &lt;?php $checked = 0; endforeach; ?&gt;
                      &lt;?php endif; ?&gt;
                      &lt;label for="new"&gt;
                          &lt;input type="radio" id="new" name="stripe_card_id" &lt;?php checked( $checked, 1 ) ?&gt; value="new" /&gt;
                          &lt;?php _e( 'Use a new credit card', 'woocommerce-gateway-stripe' ); ?&gt;
                      &lt;/label&gt;
                  &lt;/p&gt;
                  &lt;?php
              }
          ?&gt;
          &lt;div class="stripe_new_card" &lt;?php if ( $checked === 0 ) : ?&gt;style="display:none;"&lt;?php endif; ?&gt;
              data-description=""
              data-amount="&lt;?php echo $this-&gt;get_stripe_amount( WC()-&gt;cart-&gt;total ); ?&gt;"
              data-name="&lt;?php echo sprintf( __( '%s', 'woocommerce-gateway-stripe' ), get_bloginfo( 'name' ) ); ?&gt;"
              data-label="&lt;?php _e( 'Confirm and Pay', 'woocommerce-gateway-stripe' ); ?&gt;"
              data-currency="&lt;?php echo strtolower( get_woocommerce_currency() ); ?&gt;"
              data-image="&lt;?php echo $this-&gt;stripe_checkout_image; ?&gt;"
              &gt;
              &lt;?php if ( ! $this-&gt;stripe_checkout ) : ?&gt;
                  &lt;?php $this-&gt;credit_card_form( array( 'fields_have_names' =&gt; false ) ); ?&gt;
              &lt;?php endif; ?&gt;
          &lt;/div&gt;
      &lt;/fieldset&gt;
      &lt;?php
  }
  </code></pre>