<?php

namespace Devurai\AcceptbluePaymentPro\GooglePay;

class WC_AcceptBlue_GooglePay_Settings
{
    public static function init_gateway_settings (): array
    {
        $settings = array(
            'enabled' => array(
                'title' => __('Enabled/Disabled', 'payment-gateway-accept-blue-pro-for-woocommerce'),
                'label'       => __( 'Enable Accept.blue Google pay', 'payment-gateway-accept-blue-pro-for-woocommerce' ),
                'type'        => 'checkbox',
                'description' => '',
                'default'     => 'no',
            ),
            'title' => array(
                'title'       => __( 'Title', 'payment-gateway-accept-blue-pro-for-woocommerce' ),
                'type'        => 'text',
                'description' => __( 'This controls the title which the user sees during checkout.', 'payment-gateway-accept-blue-pro-for-woocommerce' ),
                'default'     => __( 'Accept.blue Google pay', 'payment-gateway-accept-blue-pro-for-woocommerce' ),
                'desc_tip'    => true,
            ),
            'description' => array(
                'title'       => __( 'Description', 'payment-gateway-accept-blue-pro-for-woocommerce' ),
                'type'        => 'text',
                'description' => __( 'This controls the description which the user sees during checkout.', 'payment-gateway-accept-blue-pro-for-woocommerce' ),
                'default'     => __( 'Pay with your Google pay.', 'payment-gateway-accept-blue-pro-for-woocommerce' ),
                'desc_tip'    => true,
            ),
            'enabled_debug_mode' => array(
                'title' => __('Enabled/Disabled', 'payment-gateway-accept-blue-pro-for-woocommerce'),
                'label'       => __( 'Enable debug mode', 'payment-gateway-accept-blue-pro-for-woocommerce' ),
                'type'        => 'checkbox',
                'description' => '',
                'default'     => 'no',
            ),
            'transaction_type' => array(
                'title'       => __('Transaction type', 'payment-gateway-accept-blue-pro-for-woocommerce' ),
                'type'        => 'select',
                'description' => '',
                'default'     => 'charge',
                'options'     => array(
                    'authorize' => 'Authorize',
                    'charge' => 'Charge'
                )
            ),
            'charge_order' => array(
                'title'     => __('Enabled/Disabled', 'payment-gateway-accept-blue-pro-for-woocommerce' ),
                'label'     => __('Charge "Complete" or "Processing" orders', 'payment-gateway-accept-blue-pro-for-woocommerce'),
                'type'      => 'checkbox',
                'description' => __('If this option is enabled, the transaction will be Charged after order status changes from "Hold on" to "Complete" or "Processing".', 'payment-gateway-accept-blue-pro-for-woocommerce'),
                'default'     => 'yes',
            ),
            'charge_virtual' => array(
                'title'    => __('Enabled/Disabled', 'payment-gateway-accept-blue-pro-for-woocommerce' ),
                'label'     => __('Charge virtual-only orders', 'payment-gateway-accept-blue-pro-for-woocommerce'),
                'type'      => 'checkbox',
                'description' => __('If enabled this option the transaction with virtual products will be charged.', 'payment-gateway-accept-blue-pro-for-woocommerce'),
                'default'     => 'no',
            ),
            'public_key' => array(
                'title'       => __( 'Tokenization key', 'payment-gateway-accept-blue-pro-for-woocommerce' ),
                'type'        => 'text',
                'description' => __( 'Tokenization key for Accept.blue Payment API. To get the key follow next route in your Accept.blue account: control panel/sources/press "edit" for type "Tokenization" source.', 'payment-gateway-accept-blue-pro-for-woocommerce' ),
                'default'     => '',
                'desc_tip'    => true,
            ),
            'source_key' => array(
                'title'       => __( 'API key', 'payment-gateway-accept-blue-pro-for-woocommerce' ),
                'type'        => 'text',
                'description' => __( 'API key for Accept.blue Payment API. To get the key follow next route in your Accept.blue account: control panel/sources/press "edit" for type "API" source.', 'payment-gateway-accept-blue-pro-for-woocommerce' ),
                'default'     => '',
                'desc_tip'    => true,
            ),
            'pin_code' => array(
                'title'       => __( 'Pin code', 'payment-gateway-accept-blue-pro-for-woocommerce' ),
                'type'        => 'text',
                'description' => __( 'Pin code key for Accept.blue Payment API. To get the key follow next route in your Accept.blue account: control panel/sources/press "edit" for type "API" source.', 'payment-gateway-accept-blue-pro-for-woocommerce' ),
                'default'     => '',
                'desc_tip'    => true,
            ),
            'sandbox_public_key' => array(
                'title'       => __( 'Sandbox tokenization key', 'payment-gateway-accept-blue-pro-for-woocommerce' ),
                'type'        => 'text',
                'description' => __( 'Tokenization key for Accept.blue Payment API. To get the key follow next route in your Accept.blue account: control panel/sources/press "edit" for type "Tokenization" source.', 'payment-gateway-accept-blue-pro-for-woocommerce' ),
                'default'     => '',
                'desc_tip'    => true,
            ),
            'sandbox_source_key' => array(
                'title'       => __( 'Sandbox API key', 'payment-gateway-accept-blue-pro-for-woocommerce' ),
                'type'        => 'text',
                'description' => __( 'API key for Accept.blue Payment API. To get the key follow next route in your Accept.blue account: control panel/sources/press "edit" for type "API" source.', 'payment-gateway-accept-blue-pro-for-woocommerce' ),
                'default'     => '',
                'desc_tip'    => true,
            ),
            'sandbox_pin_code' => array(
                'title'       => __( 'Sandbox pin code', 'payment-gateway-accept-blue-pro-for-woocommerce' ),
                'type'        => 'text',
                'description' => __( 'Pin code key for Accept.blue Payment API. To get the key follow next route in your Accept.blue account: control panel/sources/press "edit" for type "API" source.', 'payment-gateway-accept-blue-pro-for-woocommerce' ),
                'default'     => '',
                'desc_tip'    => true,
            ),
            'merchant_id' => array(
                'title' => __('Merchant ID', 'payment-gateway-accept-blue-pro-for-woocommerce'),
                'label'       => __( 'Merchant ID', 'payment-gateway-accept-blue-pro-for-woocommerce' ),
                'type'        => 'text',
                'description' => '',
                'default'     => '',
            ),
            'logging' => array(
                'title' => __('Enabled/Disabled', 'payment-gateway-accept-blue-pro-for-woocommerce'),
                'label'       => __( 'Logging', 'payment-gateway-accept-blue-pro-for-woocommerce' ),
                'type'        => 'checkbox',
                'description' => '',
                'default'     => 'no',
            ),
            'disable_level_3_fields' => array(
                'title'       => __( 'Disable level 3 fields', 'payment-gateway-accept-blue-for-woocommerce' ),
                'type'        => 'checkbox',
                'description' => __( '' ),
                'default'     => 'no',
                'desc_tip'    => false,
            )
        );

        return apply_filters('wc_acceptblue_settings_google_pay', $settings);
    }
}