array( 'title' => __( 'Enable/Disable', 'woo-viet' ), 'type' => 'checkbox', 'label' => __( 'OnePay International Gateway (by Woo Viet)', 'woo-viet' ), 'default' => 'no' ), 'testmode' => array( 'title' => __( 'OnePay Sandbox', 'woocommerce' ), 'type' => 'checkbox', 'label' => __( 'Enable OnePay sandbox (testing)', 'woocommerce' ), 'default' => 'no', 'description' => sprintf( __( 'OnePay sandbox can be used to test payments. See the testing info.', 'woocommerce' ), 'https://mtf.onepay.vn/developer/?page=modul_quocte' ), //@todo: add the logo https://mtf.onepay.vn/developer/?page=logo ), 'title' => array( 'title' => __( 'Title', 'woo-viet' ), 'type' => 'text', 'description' => __( 'This controls the title which the user sees during checkout.', 'woo-viet' ), 'default' => __( 'OnePay International Gateway', 'woo-viet' ), 'desc_tip' => true, ), 'description' => array( 'title' => __( 'Description', 'woo-viet' ), 'type' => 'textarea', 'desc_tip' => true, 'description' => __( 'This controls the description which the user sees during checkout.', 'woo-viet' ), 'default' => __( 'With OnePay, you can make payment by using any local international card such as Visa, Master, JCB, and Amex.', 'woo-viet' ) ), 'api_details' => array( 'title' => __( 'API Credentials', 'woo-viet' ), 'type' => 'title', 'description' => sprintf( __( 'Enter your OnePay API credentials. Contact OnePay to have your credentials %shere%s.', 'woo-viet' ), '', '' ), ), 'merchant_id' => array( 'title' => __( 'Merchant ID', 'woo-viet' ), 'type' => 'text', 'description' => __( 'Get your Merchant ID from OnePay.', 'woo-viet' ), 'default' => '', 'desc_tip' => true, 'placeholder' => __( 'Required. Provided by OnePay.', 'woo-viet' ) ), 'access_code' => array( 'title' => __( 'Access Code', 'woocommerce' ), 'type' => 'text', 'description' => __( 'Get your Access Code from OnePay.', 'woo-viet' ), 'default' => '', 'desc_tip' => true, 'placeholder' => __( 'Required. Provided by OnePay.', 'woo-viet' ) ), 'secure_secret' => array( 'title' => __( 'Secure Secret', 'woocommerce' ), 'type' => 'text', 'description' => __( 'Get your Secure Secret from OnePay.', 'woo-viet' ), 'default' => '', 'desc_tip' => true, 'placeholder' => __( 'Required. Provided by OnePay.', 'woo-viet' ) ), 'user' => array( 'title' => __( 'User for queryDR. Test value: op01', 'woocommerce' ), 'type' => 'text', 'description' => __( 'Get your user info from OnePay.', 'woo-viet' ), 'default' => '', 'desc_tip' => true, 'placeholder' => __( 'Required. Provided by OnePay', 'woo-viet' ) ), 'password' => array( 'title' => __( 'Password for queryDR. Test value: op123456', 'woocommerce' ), 'type' => 'text', 'description' => __( 'Get your password info from OnePay.', 'woo-viet' ), 'default' => '', 'desc_tip' => true, 'placeholder' => __( 'Required. Provided by OnePay.', 'woo-viet' ) ), 'more_info' => array( 'title' => __( 'Instant Payment Notification (IPN)', 'woo-viet' ), 'type' => 'title', 'description' => sprintf( 'URL: %s', WooViet_OnePay_International::get_onepay_ipn_url() ) . '

' . sprintf( __( '%sContact OnePay%s to configure this URL on its site. This is required based on its guidelines.', 'woo-viet' ), '', '' ), ), /** * @since 1.3.1 */ 'debug' => array( 'title' => __( 'Debug log', 'woo-viet' ), 'type' => 'checkbox', 'label' => __( 'Enable logging', 'woo-viet' ), 'default' => 'no', 'description' => sprintf( __( 'Log events, such as IPN requests, inside %s', 'woo-viet' ), '' . WC_Log_Handler_File::get_log_file_path( 'WooViet_OnePay_International' ) . '' ), ), );