/**
  * Template function to render the payment fields on checkout
  *
  * @since 2.0
  */
 function woocommerce_braintree_payment_fields($gateway)
 {
     global $wc_braintree;
     if ($gateway->description) {
         echo '<p>' . wp_kses_post($gateway->description) . '</p>';
     }
     if (!$gateway->is_production()) {
         echo '<p>' . __('Sandbox/Development/QA Mode Active', WC_Braintree::TEXT_DOMAIN) . '</p>';
         echo '<p>' . sprintf(__('Use test credit cards Visa: %s or Amex: %s', WC_Braintree::TEXT_DOMAIN), '4111111111111111', '378282246310005') . '</p>';
     }
     $cards = is_user_logged_in() ? $gateway->get_saved_cards(get_current_user_id()) : array();
     $has_cards = !empty($cards) ? true : false;
     SV_WC_Plugin_Compatibility::wc_get_template('checkout/braintree-payment-fields.php', array('has_cards' => $has_cards, 'cards' => $cards, 'cvv_required' => $gateway->is_cvv_required(), 'gateway' => $gateway), '', $wc_braintree->get_plugin_path() . '/templates/');
 }