array( 'title' => __('Enable/Disable', '2c2p-redirect-api-for-woocommerce'), 'type' => 'checkbox', 'label' => __('Enable 2c2p', '2c2p-redirect-api-for-woocommerce'), 'default' => 'no', 'description' => 'If ticked, It will show in the Payment List as a payment option' ), 'title' => array( 'title' => __('Title', '2c2p-redirect-api-for-woocommerce'), 'type' => 'text', 'default' => __('Credit / Debit Card and Cash Payment (2C2P)', '2c2p-redirect-api-for-woocommerce'), 'description' => __('This controls the title which the user sees during checkout.', '2c2p-redirect-api-for-woocommerce'), 'desc_tip' => true ), 'description' => array( 'title' => __('Description', '2c2p-redirect-api-for-woocommerce'), 'type' => 'textarea', 'default' => __('Pay Securely by Credit / Debit card or Internet banking through 2C2P.', '2c2p-redirect-api-for-woocommerce'), 'description' => __('This controls the description which the user sees during checkout.', '2c2p-redirect-api-for-woocommerce'), 'desc_tip' => true ), 'wc_2c2p_api_details' => array( 'title' => __( 'API credentials', '2c2p-redirect-api-for-woocommerce' ), 'type' => 'title', 'description' => '', ), 'key_id' => array( 'title' => __('Merchant ID', '2c2p-redirect-api-for-woocommerce'), 'type' => 'text', 'description' => __('Provided to Merchant by 2C2P team', '2c2p-redirect-api-for-woocommerce'), 'desc_tip' => true ), 'key_secret' => array( 'title' => __('Secret Key', '2c2p-redirect-api-for-woocommerce'), 'type' => 'text', 'description' => __('Provided to Merchant by 2C2P team', '2c2p-redirect-api-for-woocommerce'), 'desc_tip' => true ), 'test_mode' => array( 'title' => __('Mode', '2c2p-redirect-api-for-woocommerce'), 'type' => 'select', 'label' => __('2c2p Tranasction Mode.', '2c2p-redirect-api-for-woocommerce'), 'default' => 'test', 'description' => __('Mode of 2c2p activities', '2c2p-redirect-api-for-woocommerce'), 'desc_tip' => true, 'class' => 'wc-enhanced-select', 'options' => array( 'demo2' => 'Test Mode', 't' => 'Live Mode' ), ), 'wc_2c2p_advanced_options' => array( 'title' => __( 'Advanced options', '2c2p-redirect-api-for-woocommerce' ), 'type' => 'title', 'description' => '', ), 'wc_2c2p_stored_card_payment' => array( 'title' => __('Enable/Disable', '2c2p-redirect-api-for-woocommerce'), 'type' => 'checkbox', 'label' => __('Stored Card Payment', '2c2p-redirect-api-for-woocommerce'), ), 'wc_2c2p_123_payment_expiry' => array( 'title' => __('123 Payment Expiry (hours)', '2c2p-redirect-api-for-woocommerce'), 'type' => 'text', 'description' => __('123 Payment Expiry in hours like (8-720)', '2c2p-redirect-api-for-woocommerce'), 'desc_tip' => true, ), 'wc_2c2p_default_lang' => array( 'title' => __('Select Language', '2c2p-redirect-api-for-woocommerce'), 'type' => 'select', 'label' => __('Select Language.', '2c2p-redirect-api-for-woocommerce'), 'default' => 'test', 'description' => __('2C2P currently supports 6 languages', '2c2p-redirect-api-for-woocommerce'), 'desc_tip' => true, 'class' => 'wc-enhanced-select', 'options' => array( 'en' => 'English', 'ja' => 'Japanese', 'th' => 'Thailand', 'id' => 'Bahasa Indonesia', 'my' => 'Burmese', 'zh' => 'Simplified Chinese', ), ), 'wc_2c2p_fixed_description' => array( 'title' => __('Fixed Description', '2c2p-redirect-api-for-woocommerce'), 'type' => 'textarea', 'default' => __('Fixed Description.', '2c2p-redirect-api-for-woocommerce'), 'description' => __('Fixed product description which display during payment.', '2c2p-redirect-api-for-woocommerce'), 'desc_tip' => true, ), 'wc_2c2p_promotion_options' => array( 'title' => __( '2C2P promotion code', '2c2p-redirect-api-for-woocommerce' ), 'type' => 'title', 'description' => __( 'A 2C2P promotion code is a card/BIN restriction registered with 2C2P, not a discount. When enabled, a coupon the shopper applied is sent to 2C2P as the promotion code if it is in the list below. 2C2P rejects codes it does not know.', '2c2p-redirect-api-for-woocommerce' ), ), 'wc_2c2p_promotion_code_enabled' => array( 'title' => __('Enable/Disable', '2c2p-redirect-api-for-woocommerce'), 'type' => 'checkbox', 'label' => __('Send coupon as 2C2P promotion code', '2c2p-redirect-api-for-woocommerce'), 'default' => 'no', ), 'wc_2c2p_promotion_codes' => array( 'title' => __('Registered 2C2P promotion codes', '2c2p-redirect-api-for-woocommerce'), 'type' => 'textarea', 'default' => '', 'css' => 'height: 120px;', 'description' => __('One code per line, exactly as registered with 2C2P (max 20 characters each, case-insensitive). Order is priority: when several listed coupons are applied, the first one in this list is sent. Coupons not in this list are never sent.', '2c2p-redirect-api-for-woocommerce'), 'desc_tip' => true, ), );