form_fields = array( 'core-configuration-title' => array( 'title' => __( 'Core Configuration', 'woo_afterpay' ), 'type' => 'title' ), 'enabled' => array( 'title' => __( 'Enable/Disable', 'woo_afterpay' ), 'type' => 'checkbox', 'label' => __( 'Enable Afterpay', 'woo_afterpay' ), 'default' => 'yes' ), 'title' => array( 'title' => __( 'Title', 'woo_afterpay' ), 'type' => 'text', 'description' => __( 'This controls the payment method title which the user sees during checkout.', 'woo_afterpay' ), 'default' => __( 'Afterpay', 'woo_afterpay' ) ), 'testmode' => array( 'title' => __( 'API Environment', 'woo_afterpay' ), 'type' => 'select', 'options' => wp_list_pluck( $this->environments, 'name' ), 'default' => 'production', 'description' => __( 'Note: Sandbox and Production API credentials are not interchangeable.', 'woo_afterpay' ) ), 'api-version' => array( 'title' => __( 'API Version', 'woo_afterpay' ), 'type' => 'select', 'options' => array( 'v0' => 'v0', 'v1' => 'v1 (Recommended)' ), 'default' => 'v1', 'description' => __( 'Don’t have an Afterpay Merchant account yet?', 'woo_afterpay' ) . ' ' . '' . __( 'Apply online today!', 'woo_afterpay' ) . '' ), 'prod-id' => array( 'title' => __( 'Merchant ID (Production)', 'woo_afterpay' ), 'type' => 'text', 'default' => '' ), 'prod-secret-key' => array( 'title' => __( 'Secret Key (Production)', 'woo_afterpay' ), 'type' => 'password', 'default' => '' ), 'test-id' => array( 'title' => __( 'Merchant ID (Sandbox)', 'woo_afterpay' ), 'type' => 'text', 'default' => '' ), 'test-secret-key' => array( 'title' => __( 'Secret Key (Sandbox)', 'woo_afterpay' ), 'type' => 'password', 'default' => '' ), 'debug' => array( 'title' => __( 'Debug Mode', 'woo_afterpay' ), 'label' => __( 'Enable verbose debug logging', 'woo_afterpay' ), 'type' => 'checkbox', 'description' => __( 'The Afterpay log is in the ', 'woo_afterpay' ) . 'wc-logs' . __( ' folder, which is accessible from the ', 'woo_afterpay' ) . '' . __( 'WooCommerce System Status', 'woo_afterpay' ) . '' . __( ' page.', 'woo_afterpay' ), 'default' => 'yes' ), 'pay-over-time-limit-min' => array( 'title' => __( 'Minimum Payment Amount', 'woo_afterpay' ), 'type' => 'input', 'description' => __( 'This information is supplied by Afterpay and cannot be edited.', 'woo_afterpay' ), 'custom_attributes' => array( 'readonly' => 'true' ), 'default' => '' ), 'pay-over-time-limit-max' => array( 'title' => __( 'Maximum Payment Amount', 'woo_afterpay' ), 'type' => 'input', 'description' => __( 'This information is supplied by Afterpay and cannot be edited.', 'woo_afterpay' ), 'custom_attributes' => array( 'readonly' => 'true' ), 'default' => '' ), 'presentational-customisation-title' => array( 'title' => __( 'Customisation', 'woo_afterpay' ), 'type' => 'title', 'description' => __( 'Please feel free to customise the presentation of the Afterpay elements below to suit the individual needs of your web store.

Note: Advanced customisations may require the assistance of your web development team.', 'woo_afterpay' ) ), 'show-info-on-category-pages' => array( 'title' => __( 'Payment Info on Category Pages', 'woo_afterpay' ), 'label' => __( 'Enable', 'woo_afterpay' ), 'type' => 'checkbox', 'description' => __( 'Enable to display Afterpay elements on category pages', 'woo_afterpay' ), 'default' => 'yes' ), 'category-pages-info-text' => array( 'type' => 'wysiwyg', 'default' => $ctg_page_asset, 'description' => __( 'Use [AMOUNT] to insert the calculated instalment amount. Use [OF_OR_FROM] to insert "from" if the product\'s price is variable, or "of" if it is static.', 'woo_afterpay' ) ), 'show-info-on-product-pages' => array( 'title' => __( 'Payment Info on Individual Product Pages', 'woo_afterpay' ), 'label' => __( 'Enable', 'woo_afterpay' ), 'type' => 'checkbox', 'description' => __( 'Enable to display Afterpay elements on individual product pages', 'woo_afterpay' ), 'default' => 'yes' ), 'product-pages-info-text' => array( 'type' => 'wysiwyg', 'default' => $product_page_asset, 'description' => __( 'Use [AMOUNT] to insert the calculated instalment amount. Use [OF_OR_FROM] to insert "from" if the product\'s price is variable, or "of" if it is static.', 'woo_afterpay' ) ), 'show-info-on-cart-page' => array( 'title' => __( 'Payment Info on Cart Page', 'woo_afterpay' ), 'label' => __( 'Enable', 'woo_afterpay' ), 'type' => 'checkbox', 'description' => __( 'Enable to display Afterpay elements on the cart page', 'woo_afterpay' ), 'default' => 'yes' ), 'cart-page-info-text' => array( 'type' => 'textarea', 'default' => $cart_page_asset, 'description' => __( 'Use [AMOUNT] to insert the calculated instalment amount. In this case, the instalment amount will be calculated based on the grand total of the cart, including tax and shipping.', 'woo_afterpay' ) ) );