Edit in JSFiddle

// Initialize
var instance = new encrypter();
var settings = instance.getSettings();

console.log(settings);

/**
Settings will contain:

{
    "targetSelector": null,
    "mode": "BIND",
    "fields": {
        "RecurringEnabled": {
            "label": "Recurring enabled",
            "type": "enum",
            "minLength": 1,
            "maxLength": 1,
            "values": {
                "0": "No",
                "1": "Yes"
            },
            "defaultValue": 0,
            "elementSelector": null
        },
        "Country": {
            "label": "Country",
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "values": [],
            "defaultValue": "",
            "elementSelector": null
        },
        "HolderName": {
            "label": "Cardholder name",
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "values": [],
            "defaultValue": "",
            "elementSelector": null
        },
        "CardType": {
            "label": "Card type",
            "type": "enum",
            "minLength": 3,
            "maxLength": 20,
            "values": [
                "visa",
                "mastercard",
                "jbl",
                "amex"
            ],
            "defaultValue": "visa",
            "elementSelector": null
        },
        "CardNumber": {
            "label": "Card number",
            "type": "string",
            "minLength": 15,
            "maxLength": 17,
            "values": [],
            "defaultValue": "",
            "elementSelector": null
        },
        "CCID": {
            "label": "CCID",
            "type": "string",
            "minLength": 3,
            "maxLength": 4,
            "values": [],
            "defaultValue": "",
            "elementSelector": null
        },
        "ExpirationMonth": {
            "label": "Expiration month",
            "type": "enum",
            "minLength": 2,
            "maxLength": 2,
            "values": {
                "1": "January",
                "2": "February",
                "3": "March",
                "4": "April",
                "5": "May",
                "6": "June",
                "7": "July",
                "8": "August",
                "9": "September",
                "10": "October",
                "11": "November",
                "12": "December"
            },
            "defaultValue": "",
            "elementSelector": null
        },
        "ExpirationYear": {
            "label": "Expiration year",
            "type": "enum",
            "minLength": 4,
            "maxLength": 4,
            "values": [
                2015,
                2016,
                2017,
                2018,
                2019,
                2020,
                2021,
                2022
            ],
            "defaultValue": 2015,
            "elementSelector": null
        }
    },
    "paymentMethods": {
        "CC": {
            "label": "Credit Card",
            "isDefault": true,
            "enabled": true,
            "fields": [
                "RecurringEnabled",
                "Country",
                "HolderName",
                "CardType",
                "CardNumber",
                "CCID",
                "ExpirationMonth",
                "ExpirationYear"
            ]
        },
        "TEST": {
            "label": "Credit Card (sandbox)",
            "isDefault": false,
            "enabled": true,
            "fields": [
                "RecurringEnabled",
                "Country",
                "HolderName",
                "CardType",
                "CardNumber",
                "CCID",
                "ExpirationMonth",
                "ExpirationYear"
            ]
        }
    },
    "actions": {
        "switchPaymentMethod": {
            "enabled": true,
            "render": true,
            "className": null,
            "elementSelector": null,
            "label": "Switch payment methods"
        },
        "submitButton": {
            "enabled": true,
            "render": true,
            "className": null,
            "elementSelector": null,
            "label": "Get encrypted details",
            "reloadText": false
        }
    },
    "errors": {
        "labels": {
            "requiredField": "This field is required.",
            "valueNotAllowed": "The value is not allowed."
        }
    },
    "bindings": {},
    "cssClasses": {
        "fieldContainer": "formField-item",
        "fieldItem": "form-control"
    },
    "templates": {},
    "key": {
        "contents": "Mh.....zRQzETXTdTonbnodpkCAwEAAQ==",
        "identifier": "public-key-0001"
    }
}
*/