![]() 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/old/vendor/magento/module-paypal/view/adminhtml/web/js/payflowpro/ |
/** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ /*browser:true*/ define([ 'jquery', 'uiComponent' ], function ($, Class) { 'use strict'; return Class.extend({ defaults: { $selector: null, selector: 'edit_form' }, /** * Set list of observable attributes * @returns {exports.initObservable} */ initObservable: function () { var self = this; self.$selector = $('#' + self.selector); this._super(); this.initEventHandlers(); return this; }, /** * Get payment code * @returns {String} */ getCode: function () { return 'payflowpro'; }, /** * Init event handlers */ initEventHandlers: function () { $('#' + this.container).find('[name="payment[token_switcher]"]') .on('click', this.setPaymentDetails.bind(this)); }, /** * Store payment details */ setPaymentDetails: function () { this.$selector.find('[name="payment[public_hash]"]').val(this.publicHash); } }); });