function gateway_admin_settings($settings, $visible) { global $tc; ?> <div id="<?php echo $this->plugin_name; ?> " class="postbox" <?php echo !$visible ? 'style="display:none;"' : ''; ?> > <h3 class='handle'><span><?php printf(__('%s Settings', 'tc'), $this->admin_name); ?> </span></h3> <div class="inside"> <span class="description"><?php _e('Accept credit and debit cards (Visa, MasterCard, AmEx, Discover, JCB, Maestro and UnionPay)', 'tc'); ?> </span> <?php $fields = array('is_ssl' => array('title' => __('Mode', 'tc'), 'type' => 'select', 'options' => array('0' => __('Sandbox / Test', 'tc'), '1' => __('Live (Force SSL)', 'tc')), 'default' => '0'), 'merchant_key' => array('title' => __('Merchant Key', 'tc'), 'type' => 'text'), 'private_key' => array('title' => __('Private Key', 'tc'), 'type' => 'text'), 'public_key' => array('title' => __('Public Key', 'tc'), 'type' => 'text'), 'cse_key' => array('title' => __('CSE Key', 'tc'), 'type' => 'text'), 'currency' => array('title' => __('Currency', 'tc'), 'type' => 'select', 'options' => $this->currencies, 'default' => 'USD')); $form = new TC_Form_Fields_API($fields, 'tc', 'gateways', $this->plugin_name); ?> <table class="form-table"> <?php $form->admin_options(); ?> </table> </div> </div> <?php }
function gateway_admin_settings($settings, $visible) { global $tc; ?> <div id="<?php echo $this->plugin_name; ?> " class="postbox" <?php echo !$visible ? 'style="display:none;"' : ''; ?> > <h3 class='handle'><span><?php printf(__('%s Settings', 'tc'), $this->admin_name); ?> </span></h3> <div class="inside"> <span class="description"><?php _e('A SSL certificate is required for live transactions.', 'tc'); ?> </span> <?php $fields = array('mode' => array('title' => __('Mode', 'tc'), 'type' => 'select', 'options' => array('sandbox' => __('Sandbox / Test', 'tc'), 'live' => __('Live', 'tc')), 'default' => 'sandbox'), 'api_user' => array('title' => __('Login ID', 'tc'), 'type' => 'text'), 'api_key' => array('title' => __('Transaction Key', 'tc'), 'type' => 'text', 'description' => '', 'default' => ''), 'md5_hash' => array('title' => __('MD5 Hash', 'tc'), 'type' => 'text', 'description' => '', 'default' => ''), 'additional_fields' => array('title' => __('Show Additional Fields (required by European merchants)', 'tc'), 'type' => 'select', 'default' => 'no', 'options' => array('yes' => __('Yes', 'tc'), 'no' => __('No', 'tc')), 'description' => 'Fields added to checkout are billing information: Address, City, State, Zip Code, Country', 'default' => 'no'), 'currency' => array('title' => __('Currency', 'tc'), 'type' => 'select', 'options' => $this->currencies, 'default' => 'USD')); $form = new TC_Form_Fields_API($fields, 'tc', 'gateways', $this->plugin_name); ?> <table class="form-table"> <?php $form->admin_options(); ?> </table> </div> </div> <?php }
function gateway_admin_settings($settings, $visible) { global $tc; ?> <div id="<?php echo $this->plugin_name; ?> " class="postbox" <?php echo !$visible ? 'style="display:none;"' : ''; ?> > <h3 class='handle'><span><?php printf(__('%s Settings', 'tc'), $this->admin_name); ?> </span></h3> <div class="inside"> <span class="description"> <?php echo sprintf(__('Sell your tickets via <a target="_blank" href="%s">PayGate</a>', 'tc'), "https://www.paygate.co.za/"); ?> </span> <?php $fields = array('merchant_id' => array('title' => __('Merchant ID', 'tc'), 'type' => 'text', 'default' => '10011013800'), 'encryption_key' => array('title' => __('Encryption Key', 'tc'), 'type' => 'text', 'default' => 'secret'), 'currency' => array('title' => __('Currency', 'tc'), 'type' => 'select', 'options' => $this->currencies, 'default' => 'USD')); $form = new TC_Form_Fields_API($fields, 'tc', 'gateways', $this->plugin_name); ?> <table class="form-table"> <?php $form->admin_options(); ?> </table> </div> </div> <?php }
function gateway_admin_settings($settings, $visible) { global $tc; ?> <div id="<?php echo $this->plugin_name; ?> " class="postbox" <?php echo !$visible ? 'style="display:none;"' : ''; ?> > <h3 class='handle'><span><?php printf(__('%s Settings', 'tc'), $this->admin_name); ?> </span></h3> <div class="inside"> <span class="description"> <?php _e('PayU Latam works by sending the user to <a href="https://www.payu.com/">PayU</a> to enter their payment information.', 'tc'); ?> </span> <?php $fields = array('mode' => array('title' => __('Mode', 'tc'), 'type' => 'select', 'options' => array('sandbox' => __('Sandbox / Test', 'tc'), 'live' => __('Live', 'tc')), 'default' => 'sandbox'), 'merchant_id' => array('title' => __('Merchant ID', 'tc'), 'type' => 'text'), 'account_id' => array('title' => __('Account ID', 'tc'), 'type' => 'text'), 'api_key' => array('title' => __('Api Key', 'tc'), 'type' => 'text'), 'language' => array('title' => __('Gateway Language', 'tc'), 'type' => 'select', 'options' => $this->languages), 'currency' => array('title' => __('Currency', 'tc'), 'type' => 'select', 'options' => $this->currencies)); $form = new TC_Form_Fields_API($fields, 'tc', 'gateways', $this->plugin_name); ?> <table class="form-table"> <?php $form->admin_options(); ?> </table> </div> </div> <?php }
function gateway_admin_settings($settings, $visible) { global $tc; ?> <div id="<?php echo $this->plugin_name; ?> " class="postbox" <?php echo !$visible ? 'style="display:none;"' : ''; ?> > <h3 class='handle'><span><?php printf(__('%s Settings', 'tc'), $this->admin_name); ?> </span></h3> <div class="inside"> <span class="description"> <?php _e("Accept all major credit cards directly on your site. Your sales proceeds are deposited to any Australian bank account, no merchant account required.", 'tc'); ?> </span> <?php $fields = array('is_ssl' => array('title' => __('Mode', 'tc'), 'type' => 'select', 'options' => array('0' => __('Sandbox / Test', 'tc'), '1' => __('Live', 'tc')), 'default' => '0'), 'private_key' => array('title' => __('Secret API Key', 'tc'), 'type' => 'text', 'description' => __('You must login to PIN to <a target="_blank" href="https://dashboard.pin.net.au/account">get your API credentials</a>. You can enter your test keys, then live ones when ready.', 'tc')), 'public_key' => array('title' => __('Publishable API Key', 'tc'), 'type' => 'text'), 'currency' => array('title' => __('Currency', 'tc'), 'type' => 'select', 'options' => $this->currencies, 'default' => 'AUD')); $form = new TC_Form_Fields_API($fields, 'tc', 'gateways', $this->plugin_name); ?> <table class="form-table"> <?php $form->admin_options(); ?> </table> </div> </div> <?php }
function gateway_admin_settings($settings, $visible) { global $tc; ?> <div id="<?php echo $this->plugin_name; ?> " class="postbox" <?php echo !$visible ? 'style="display:none;"' : ''; ?> > <h3 class='handle'><span><?php printf(__('%s Settings', 'tc'), $this->admin_name); ?> </span></h3> <div class="inside"> <span class="description"> <?php _e('Accept credit card payments', 'tc'); ?> </span> <?php $fields = array('mode' => array('title' => __('Mode', 'tc'), 'type' => 'select', 'description' => '', 'default' => 'sandbox', 'options' => array('sandbox' => __('Sandbox / Test'), 'live' => __('Live'))), 'merchant_id' => array('title' => __('Merchant ID', 'tc'), 'type' => 'text', 'description' => '', 'default' => ''), 'api_access' => array('title' => __('API access passcode', 'tc'), 'type' => 'text', 'description' => '', 'default' => ''), 'currency' => array('title' => __('Currency', 'tc'), 'type' => 'select', 'description' => __('Selecting a currency other than that used for your store may cause problems at checkout.', 'tc'), 'default' => 'USD', 'options' => $this->currencies)); $form = new TC_Form_Fields_API($fields, 'tc', 'gateways', $this->plugin_name); ?> <table class="form-table"> <?php $form->admin_options(); ?> </table> </div> </div> <?php }
function gateway_admin_settings($settings, $visible) { global $tc; ?> <div id="<?php echo $this->plugin_name; ?> " class="postbox" <?php echo !$visible ? 'style="display:none;"' : ''; ?> > <h3 class='handle'><span><?php printf(__('%s Settings', 'tc'), $this->admin_name); ?> </span></h3> <div class="inside"> <span class="description"> <?php echo __('PayTabs works by sending the user to PayTabs to enter their payment information.', 'tc'); ?> </span> <?php $fields = array('merchantid' => array('title' => __('Merchant ID / Username', 'tc'), 'type' => 'text'), 'password' => array('title' => __('Password', 'tc'), 'type' => 'text'), 'language' => array('title' => __('Language', 'tc'), 'type' => 'select', 'options' => $this->paytabs_languages, 'default' => 'English')); $form = new TC_Form_Fields_API($fields, 'tc', 'gateways', $this->plugin_name); ?> <table class="form-table"> <?php $form->admin_options(); ?> </table> </div> </div> <?php }
function gateway_admin_settings($settings, $visible) { global $tc; ?> <div id="<?php echo $this->plugin_name; ?> " class="postbox" <?php echo !$visible ? 'style="display:none;"' : ''; ?> > <h3 class='handle'><span><?php printf(__('%s Settings', 'tc'), $this->admin_name); ?> </span></h3> <div class="inside"> <span class="description"> <?php _e('Accept all major credit and debit cards directly on your site. Credit cards go directly to Paymill\'s secure environment, and never hit your servers so you can avoid most PCI requirements.', 'tc'); ?> </span> <?php $fields = array('is_ssl' => array('title' => __('Force SSL', 'tc'), 'type' => 'select', 'options' => array('0' => __('No', 'tc'), '1' => __('Yes', 'tc')), 'default' => '0'), 'private_key' => array('title' => __('Private Key', 'tc'), 'type' => 'text', 'description' => __('You must login to Paymill to <a target="_blank" href="https://app.paymill.com/en-gb/auth/login">get your API credentials</a>. You can enter your test keys, then live ones when ready.', 'tc')), 'public_key' => array('title' => __('Public Key', 'tc'), 'type' => 'text', 'description' => '', 'default' => ''), 'currency' => array('title' => __('Currency', 'tc'), 'type' => 'select', 'options' => $this->currencies, 'default' => 'USD')); $form = new TC_Form_Fields_API($fields, 'tc', 'gateways', $this->plugin_name); ?> <table class="form-table"> <?php $form->admin_options(); ?> </table> </div> </div> <?php }
function gateway_admin_settings($settings, $visible) { global $tc; ?> <div id="<?php echo $this->plugin_name; ?> " class="postbox" <?php echo !$visible ? 'style="display:none;"' : ''; ?> > <h3 class='handle'><span><?php printf(__('%s Settings', 'tc'), $this->admin_name); ?> </span></h3> <div class="inside"> <span class="description"> <?php _e("VoguePay Payment Gateway allows you to sell tickets and receive Mastercard, Verve Card and Visa Card Payments. Please note that gateway suppports only Nigerian Naira (NGN) currency.", 'tc'); ?> </span> <?php $fields = array('merchant_id' => array('title' => __('Merchant ID', 'tc'), 'type' => 'text'), 'currency' => array('title' => __('Currency', 'tc'), 'type' => 'select', 'options' => $this->currencies, 'default' => 'NGD')); $form = new TC_Form_Fields_API($fields, 'tc', 'gateways', $this->plugin_name); ?> <table class="form-table"> <?php $form->admin_options(); ?> </table> </div> </div> <?php }
function gateway_admin_settings($settings, $visible) { global $tc; ?> <div id="<?php echo $this->plugin_name; ?> " class="postbox" <?php echo !$visible ? 'style="display:none;"' : ''; ?> > <h3 class='handle'><span><?php printf(__('%s Settings', 'tc'), $this->admin_name); ?> </span></h3> <div class="inside"> <span class="description"> <?php _e("PayPal Payments Pro is an affordable website payment processing solution for businesses with more than 100+ orders/month. Our integration with PayPal PRO will appear seamlessly to your customers.", 'tc'); ?> <a href="https://www.paymill.com/en-gb/support-3/worth-knowing/pci-security/" target="_blank"><?php _e('Read More »', 'tc'); ?> </a> </span> <?php $fields = array('is_ssl' => array('title' => __('Mode', 'tc'), 'type' => 'select', 'options' => array('0' => __('Sandbox / Test', 'tc'), '1' => __('Live', 'tc')), 'default' => '0'), 'api_username' => array('title' => __('API Username', 'tc'), 'type' => 'text'), 'api_password' => array('title' => __('API Password', 'tc'), 'type' => 'text'), 'api_signature' => array('title' => __('API Signature', 'tc'), 'type' => 'text', 'description' => ''), 'currency' => array('title' => __('Currency', 'tc'), 'type' => 'select', 'options' => $this->currencies, 'default' => 'USD')); $form = new TC_Form_Fields_API($fields, 'tc', 'gateways', $this->plugin_name); ?> <table class="form-table"> <?php $form->admin_options(); ?> </table> </div> </div> <?php }
function gateway_admin_settings($settings, $visible) { global $tc; ?> <div id="<?php echo $this->plugin_name; ?> " class="postbox" <?php echo !$visible ? 'style="display:none;"' : ''; ?> > <h3 class='handle'><span><?php printf(__('%s Settings', 'tc'), $this->admin_name); ?> </span></h3> <div class="inside"> <span class="description"><?php _e('Track offline / custom payments (Cash on Delivery, Money Orders, Bank Deposits, Cheques etc.) manually.', 'tc'); ?> </span> <?php $fields = array('public_name' => array('title' => __('Public Method Name', 'tc'), 'type' => 'text', 'description' => __('Insert public name for this payment method which will be visible to buyers', 'tc'), 'default' => $this->public_name), 'admin_name' => array('title' => __('Admin Method Name', 'tc'), 'type' => 'text', 'description' => __('Insert admin name for this payment method which will be visible within the administration panel (Orders screen etc.)', 'tc'), 'default' => $this->admin_name), 'info' => array('title' => __('Payment Method Info', 'tc'), 'type' => 'wp_editor', 'description' => __('Information about the payment method which will be visible to user upon choosing this payment method.', 'tc')), 'instructions' => array('title' => __('Payment Instructions', 'tc'), 'type' => 'wp_editor', 'description' => __('Your customers who checkout using the custom offline payment method will be given a set of instructions (set by you) to complete the purchase process immediately after checkout completion. Available placeholders: ORDER_ID', 'tc')), 'instructions_email' => array('title' => __('E-mail Instructions', 'tc'), 'type' => 'select', 'options' => array('no' => __('No', 'tc'), 'yes' => __('Yes', 'tc')), 'default' => 'no', 'description' => __('Send an email with the payment instructions to a customer upon creating an order. The e-mail will be sent only if status of a order is "Order Received".', 'tc')), 'instructions_email_subject' => array('title' => __('Instructions E-mail Subject', 'tc'), 'type' => 'text', 'default' => __('Payment Instructions', 'tc')), 'automatic_status' => array('title' => __('Automatic Payment Status', 'tc'), 'type' => 'select', 'options' => array('order_received' => __('Order Received', 'tc'), 'order_paid' => __('Order Paid', 'tc')), 'default' => 'order_received', 'description' => __('Automatic payment status which will be set for all custom offline payment orders.', 'tc'))); $form = new TC_Form_Fields_API($fields, 'tc', 'gateways', $this->plugin_name); ?> <table class="form-table"> <?php $form->admin_options(); ?> </table> </div> </div> <?php }
function gateway_admin_settings($settings, $visible) { global $tc; ?> <div id="<?php echo $this->plugin_name; ?> " class="postbox" <?php echo !$visible ? 'style="display:none;"' : ''; ?> > <h3 class='handle'><span><?php printf(__('%s Settings', 'tc'), $this->admin_name); ?> </span></h3> <div class="inside"> <span class="description"> <?php _e('Mijireh Checkout provides a fully PCI Compliant, secure way to collect and transmit credit card data to your payment gateway while keeping you in control of the design of your site.', 'tc'); ?> </span> <?php $fields = array('access_key' => array('title' => __('Mijireh Access Key', 'tc'), 'type' => 'text'), 'currency' => array('title' => __('Currency', 'tc'), 'type' => 'select', 'options' => $this->currencies, 'default' => 'USD')); $form = new TC_Form_Fields_API($fields, 'tc', 'gateways', $this->plugin_name); ?> <table class="form-table"> <?php $form->admin_options(); ?> </table> </div> </div> <?php }
function gateway_admin_settings($settings, $visible) { global $tc; ?> <div id="<?php echo $this->plugin_name; ?> " class="postbox" <?php echo !$visible ? 'style="display:none;"' : ''; ?> > <h3 class='handle'><span><?php printf(__('%s Settings', 'tc'), $this->admin_name); ?> </span></h3> <div class="inside"> <span class="description"><?php _e('Accept payments in Japan with Komoju.', 'tc'); ?> </span> <?php $fields = array('mode' => array('title' => __('Mode', 'tc'), 'type' => 'select', 'options' => array('sandbox' => __('Sandbox / Test', 'tc'), 'live' => __('Live', 'tc')), 'default' => 'sandbox'), 'account_id' => array('title' => __('Account ID', 'tc'), 'type' => 'text'), 'secret_key' => array('title' => __('Secret Key', 'tc'), 'type' => 'text'), 'payment_methods' => array('title' => __('Payment Methods', 'tc'), 'type' => 'checkboxes', 'options' => $this->payment_methods), 'locale' => array('title' => __('Locale', 'tc'), 'type' => 'select', 'options' => $this->locales, 'default' => 'ja'), 'currency' => array('title' => __('Currency', 'tc'), 'type' => 'select', 'options' => $this->currencies, 'default' => 'JPY')); $form = new TC_Form_Fields_API($fields, 'tc', 'gateways', $this->plugin_name); ?> <table class="form-table"> <?php $form->admin_options(); ?> </table> </div> </div> <?php }
function gateway_admin_settings($settings, $visible) { global $tc; ?> <div id="<?php echo $this->plugin_name; ?> " class="postbox" <?php echo !$visible ? 'style="display:none;"' : ''; ?> > <h3 class='handle'><span><?php printf(__('%s Settings', 'tc'), $this->admin_name); ?> </span></h3> <div class="inside"> <span class="description"> <?php _e('Accepts credit card payments with Optimal Payments Netbanx in your store', 'tc'); ?> </span> <?php $fields = array('mode' => array('title' => __('Mode', 'tc'), 'type' => 'select', 'description' => '', 'default' => 'sandbox', 'options' => array('sandbox' => __('Sandbox / Test'), 'live' => __('Live', 'tc'))), 'account_number' => array('title' => __('Account Number', 'tc'), 'type' => 'text', 'description' => '', 'default' => ''), 'api_key_id' => array('title' => __('Api Key ID', 'tc'), 'type' => 'text', 'description' => '', 'default' => ''), 'api_key_secret' => array('title' => __('Api Key Secret', 'tc'), 'type' => 'text', 'description' => '', 'default' => '')); $form = new TC_Form_Fields_API($fields, 'tc', 'gateways', $this->plugin_name); ?> <table class="form-table"> <?php $form->admin_options(); ?> </table> </div> </div> <?php }
function gateway_admin_settings($settings, $visible) { global $tc; ?> <div id="<?php echo $this->plugin_name; ?> " class="postbox" <?php echo !$visible ? 'style="display:none;"' : ''; ?> > <h3 class='handle'><span><?php printf(__('%s Settings', 'tc'), $this->admin_name); ?> </span></h3> <div class="inside"> <span class="description"><?php _e('This method will be automatically activated if order total is 0 (zero). This is the only method which will be shown to buyers in this case - other payment options will be hidden.', 'tc'); ?> </span> <?php $fields = array('public_name' => array('title' => __('Public Method Name', 'tc'), 'type' => 'text', 'description' => __('Insert public name for this payment method which will be visible to buyers', 'tc'), 'default' => $this->public_name), 'admin_name' => array('title' => __('Admin Method Name', 'tc'), 'type' => 'text', 'description' => __('Insert admin name for this payment method which will be visible within the administration panel (Orders screen etc.)', 'tc'), 'default' => $this->admin_name), 'info' => array('title' => __('Payment Method Info', 'tc'), 'type' => 'wp_editor', 'description' => __('Information about the payment method which will be visible to user.', 'tc')), 'instructions' => array('title' => __('Payment Instructions', 'tc'), 'type' => 'wp_editor', 'description' => __('An additional message shown on the payment confirmation page.', 'tc')), 'zero_total_status' => array('title' => __('Automatic Payment Status', 'tc'), 'type' => 'select', 'options' => array('order_received' => __('Order Received', 'tc'), 'order_paid' => __('Order Paid', 'tc')), 'default' => 'order_received', 'description' => __('Automatic payment status which will be set for all custom offline payment orders.', 'tc'))); $form = new TC_Form_Fields_API($fields, 'tc', 'gateways', $this->plugin_name); ?> <table class="form-table"> <?php $form->admin_options(); ?> </table> </div> </div> <?php }
function gateway_admin_settings($settings, $visible) { global $tc; ?> <div id="<?php echo $this->plugin_name; ?> " class="postbox" <?php echo !$visible ? 'style="display:none;"' : ''; ?> > <h3 class='handle'><span><?php printf(__('%s Settings', 'tc-mollie'), $this->admin_name); ?> </span></h3> <div class="inside"> <span class="description"> <?php _e('Mollie provides a fully PCI Compliant and secure way to collect payments via iDeal, Credit Card, Bancontact / Mister Cash, SOFORT Banking, Overbooking, Bitcoin, PayPal, paysafecard and AcceptEmail.', 'tc-mollie'); ?> </span> <?php $fields = array('api_key' => array('title' => __('Mollie API Key', 'tc-mollie'), 'type' => 'text'), 'public_name' => array('title' => __('Payment Method Name (shown on front)', 'tc-mollie'), 'type' => 'text')); $form = new TC_Form_Fields_API($fields, 'tc', 'gateways', $this->plugin_name); ?> <table class="form-table"> <?php $form->admin_options(); ?> </table> </div> </div> <?php }
function gateway_admin_settings($settings, $visible) { global $tc; ?> <div id="<?php echo $this->plugin_name; ?> " class="postbox" <?php echo !$visible ? 'style="display:none;"' : ''; ?> > <h3 class='handle'><span><?php printf(__('%s Settings', 'tc'), $this->admin_name); ?> </span></h3> <div class="inside"> <span class="description"> <?php _e("Simplify makes it easy to accept payments for U.S citizen online consumer.", 'tc'); ?> </span> <?php $fields = array('public_key' => array('title' => __('Public API Key', 'tc'), 'type' => 'text'), 'private_key' => array('title' => __('Private API Key', 'tc'), 'type' => 'text'), 'currency' => array('title' => __('Currency', 'tc'), 'type' => 'select', 'options' => $this->currencies, 'default' => 'USD')); $form = new TC_Form_Fields_API($fields, 'tc', 'gateways', $this->plugin_name); ?> <table class="form-table"> <?php $form->admin_options(); ?> </table> </div> </div> <?php }
function gateway_admin_settings($settings, $visible) { global $tc; ?> <div id="<?php echo $this->plugin_name; ?> " class="postbox" <?php echo !$visible ? 'style="display:none;"' : ''; ?> > <h3 class='handle'><span><?php printf(__('%s Settings', 'tc'), $this->admin_name); ?> </span></h3> <div class="inside"> <span class="description"> <?php echo sprintf(__('Sell your tickets via <a target="_blank" href="%s">2Checkout.com</a>', 'tc'), "https://www.2checkout.com/referral?r=95d26f72d1"); ?> </span> <?php $fields = array('mode' => array('title' => __('Mode', 'tc'), 'type' => 'select', 'options' => array('sandbox' => __('Sandbox / Test', 'tc'), 'live' => __('Live', 'tc')), 'default' => 'sandbox'), 'sid' => array('title' => __('Seller ID', 'tc'), 'type' => 'text', 'description' => sprintf(__('Login to your 2Checkout dashboard to obtain the seller ID and secret word. <a target="_blank" href="%s">Instructions »</a>', 'tc'), "http://help.2checkout.com/articles/FAQ/Where-do-I-set-up-the-Secret-Word/")), 'secret_word' => array('title' => __('Secret Word', 'tc'), 'type' => 'text', 'description' => '', 'default' => 'tango'), 'currency' => array('title' => __('Currency', 'tc'), 'type' => 'select', 'options' => $this->currencies, 'default' => 'USD')); $form = new TC_Form_Fields_API($fields, 'tc', 'gateways', '2checkout'); ?> <table class="form-table"> <?php $form->admin_options(); ?> </table> </div> </div> <?php }
function gateway_admin_settings($settings, $visible) { global $tc; ?> <div id="<?php echo $this->plugin_name; ?> " class="postbox" <?php echo !$visible ? 'style="display:none;"' : ''; ?> > <h3 class='handle'><span><?php printf(__('%s Settings', 'tc'), $this->admin_name); ?> </span></h3> <div class="inside"> <span class="description"><?php _e('iPay88 is a payment gateway for Malaysia. It works by redirecting the customer to iPay88 server to make a payment and then returns the customer back to your confirmation page.', 'tc'); ?> </span> <?php $fields = array('MerchantCode' => array('title' => __('Merchant Code', 'tc'), 'type' => 'text'), 'MerchantKey' => array('title' => __('Merchant Key', 'tc'), 'type' => 'text'), 'payment_types' => array('title' => __('Payment Types', 'tc'), 'type' => 'checkboxes', 'options' => $this->paymenttype_options), 'currency' => array('title' => __('Currency', 'tc'), 'type' => 'select', 'options' => $this->currencies, 'default' => 'MYR')); $form = new TC_Form_Fields_API($fields, 'tc', 'gateways', $this->plugin_name); ?> <table class="form-table"> <?php $form->admin_options(); ?> </table> </div> </div> <?php }
function gateway_admin_settings($settings, $visible) { global $tc; ?> <div id="<?php echo $this->plugin_name; ?> " class="postbox" <?php echo !$visible ? 'style="display:none;"' : ''; ?> > <h3 class='handle'><span><?php printf(__('%s Settings', 'tc'), $this->admin_name); ?> </span></h3> <div class="inside"> <span class="description"> <?php _e("Sell tickets via PayPal standard payment gateway", 'tc'); ?> </span> <?php $fields = array('mode' => array('title' => __('Mode', 'tc'), 'type' => 'select', 'options' => array('sandbox' => __('Sandbox / Test', 'tc'), 'live' => __('Live', 'tc')), 'default' => '0'), 'email' => array('title' => __('PayPal E-Mail', 'tc'), 'type' => 'text'), 'locale' => array('title' => __('Locale', 'tc'), 'type' => 'select', 'options' => $this->locales, 'default' => 'US'), 'currency' => array('title' => __('Currency', 'tc'), 'type' => 'select', 'options' => $this->currencies, 'default' => 'USD')); $form = new TC_Form_Fields_API($fields, 'tc', 'gateways', $this->plugin_name); ?> <table class="form-table"> <?php $form->admin_options(); ?> </table> </div> </div> <?php }
function gateway_admin_settings($settings, $visible) { global $tc; ?> <div id="<?php echo $this->plugin_name; ?> " class="postbox" <?php echo !$visible ? 'style="display:none;"' : ''; ?> > <h3 class='handle'><span><?php printf(__('%s Settings', 'tc'), $this->admin_name); ?> </span></h3> <div class="inside"> <span class="description"> <?php _e("Accept Visa, MasterCard, American Express, Discover, JCB, and Diners Club cards directly on your site. Credit cards go directly to Stripe's secure environment, and never hit your servers so you can avoid most PCI requirements.", 'tc'); ?> </span> <?php $fields = array('is_ssl' => array('title' => __('Mode', 'tc'), 'type' => 'select', 'options' => array('0' => __('Sandbox / Test', 'tc'), '1' => __('Live', 'tc')), 'default' => '0'), 'send_receipt' => array('title' => __('Send Receipt', 'tc'), 'type' => 'select', 'options' => array('1' => __('Yes', 'tc'), '0' => __('No', 'tc')), 'default' => '0', 'description' => __('Send Stripe Receipt to a customer automatically upon completed purchase.', 'tc')), 'private_key' => array('title' => __('Secret API Key', 'tc'), 'type' => 'text', 'description' => __('You must login to Stripe to <a target="_blank" href="https://manage.stripe.com/#account/apikeys">get your API credentials</a>. You can enter your test credentials, then live ones when ready.', 'tc')), 'publishable_key' => array('title' => __('Publishable API Key', 'tc'), 'type' => 'text'), 'currency' => array('title' => __('Currency', 'tc'), 'type' => 'select', 'options' => $this->currencies, 'default' => 'AUD')); $form = new TC_Form_Fields_API($fields, 'tc', 'gateways', $this->plugin_name); ?> <table class="form-table"> <?php $form->admin_options(); ?> </table> </div> </div> <?php }