<h3><?php _e('Gateway Name', 'woocommerce-payment-gateway-boilerplate'); ?> </h3> <div class="gateway-banner updated"> <img src="<?php echo WC_Gateway_Name()->plugin_url() . '/assets/images/logo.png'; ?> " /> <p class="main"><strong><?php _e('Getting started', 'woocommerce-payment-gateway-boilerplate'); ?> </strong></p> <p><?php _e('A payment gateway description can be placed here.', 'woocommerce-payment-gateway-boilerplate'); ?> </p> <p class="main"><strong><?php _e('Gateway Status', 'woocommerce-payment-gateway-boilerplate'); ?> </strong></p> <ul> <li><?php echo __('Debug Enabled?', 'woocommerce-payment-gateway-boilerplate') . ' <strong>' . $this->debug . '</strong>'; ?> </li> <li><?php echo __('Sandbox Enabled?', 'woocommerce-payment-gateway-boilerplate') . ' <strong>' . $this->sandbox . '</strong>'; ?>
/** * Payment form on checkout page. * * @TODO: Use this function to add credit card * and custom fields on the checkout page. * @access public */ public function payment_fields() { $description = $this->get_description(); if ($this->sandbox == 'yes') { $description .= ' ' . __('TEST MODE ENABLED.'); } if (!empty($description)) { echo wpautop(wptexturize(trim($description))); } // If credit fields are enabled, then the credit card fields are provided automatically. if ($this->credit_fields) { $this->credit_card_form(array('fields_have_names' => false)); } // This includes your custom payment fields. include_once WC_Gateway_Name()->plugin_path() . '/includes/views/html-payment-fields.php'; }