Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/cartforge.co/vendor/magento/module-vault/view/frontend/web/js/view/payment/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/cartforge.co/vendor/magento/module-vault/view/frontend/web/js/view/payment/vault.js
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
/*browser:true*/

/* @api */
define([
    'underscore',
    'uiComponent',
    'Magento_Checkout/js/model/payment/renderer-list',
    'uiLayout',
    'uiRegistry'
], function (_, Component, rendererList, layout, registry) {
    'use strict';

    var vaultGroupName = 'vaultGroup';

    layout([{
        name: vaultGroupName,
        component: 'Magento_Checkout/js/model/payment/method-group',
        alias: 'vault',
        sortOrder: 10
    }]);

    registry.get(vaultGroupName, function (vaultGroup) {
        _.each(window.checkoutConfig.payment.vault, function (config, index) {
            rendererList.push(
                {
                    type: index,
                    config: config.config,
                    component: config.component,
                    group: vaultGroup,

                    /**
                     * Custom payment method types comparator
                     * @param {String} typeA
                     * @param {String} typeB
                     * @return {Boolean}
                     */
                    typeComparatorCallback: function (typeA, typeB) {
                        // vault token items have the same name as vault payment without index
                        return typeA.substring(0, typeA.lastIndexOf('_')) === typeB;
                    }
                }
            );
        });
    });

    /**
     * Add view logic here if needed
     */
    return Component.extend({});
});

Spamworldpro Mini