WC_Payment_Gateway::saved_payment_methods PHP Method

saved_payment_methods() public method

Grab and display our saved payment methods.
Since: 2.6.0
    public function saved_payment_methods()
    {
        $html = '<ul class="woocommerce-SavedPaymentMethods wc-saved-payment-methods" data-count="' . esc_attr(count($this->get_tokens())) . '">';
        foreach ($this->get_tokens() as $token) {
            $html .= $this->get_saved_payment_method_option_html($token);
        }
        $html .= $this->get_new_payment_method_option_html();
        $html .= '</ul>';
        echo apply_filters('wc_payment_gateway_form_saved_payment_methods_html', $html, $this);
    }