1var VFBQuickPay = {}; 2VFBQuickPay.quickpayPolicyViewModel = VFBQuickPay.quickpayPolicyViewModel || {}; 3VFBQuickPay.getQuickPayPolicy = function () { 4 //vfb.utility.addSpinner(); 5 $('body').append($('#portalOneContainer').detach()); 6 $.ajax({ 7 dataType: 'json', 8 contentType: "application/json", 9 type: "GET", 10 url: "/DesktopModules/VFBServices/API/VFBServiceLibrary/GetOneIncQuickPayPolicyModalIntializeInformation", 11 beforeSend: $.ServicesFramework().setModuleHeaders 12 }).done(function (data) { 13 if (data == null) { 14 VFBQuickPay.openModel("policy"); 15 } else if (data.OneIncSessionId == "") { 16 VFBQuickPay.openModel("policy"); 17 } else { 18 $('#portalOneContainer').portalOne(); 19 $('#portalOneContainer').data('portalOne') 20 .quickPay({ 21 'sessionId': data.OneIncSessionId, 22 'feeContext': 'PaymentWithFee' 23 }); 24 $('#portalOneContainer') 25 .on('portalOne.unload', function () { 26 }); 27 //setTimeout(function () { vfb.utility.removeSpinner(); }, 3000); 28 } 29 }).fail(function (xhr, status) { 30 VFBQuickPay.openModel("policy"); 31 }); 32}; 33VFBQuickPay.getQuickPayMembership = function () { 34 //vfb.utility.addSpinner(); 35 $('body').append($('#portalOneContainer').detach()); 36 $.ajax({
37 dataType: 'json', 38 contentType: "application/json", 39 type: "GET", 40 url: "/DesktopModules/VFBServices/API/VFBServiceLibrary/GetOneIncQuickPayMembershipModalIntializeInformation", 41 beforeSend: $.ServicesFramework().setModuleHeaders 42 }).done(function (data) { 43 if (data == null) { 44 VFBQuickPay.openModel("membership"); 45 } else if (data.OneIncSessionId == "") { 46 VFBQuickPay.openModel("membership"); 47 } else { 48 $('#portalOneContainer').portalOne(); 49 $('#portalOneContainer').data('portalOne') 50 .quickPay({ 51 'sessionId': data.OneIncSessionId, 52 'feeContext': 'PaymentWithoutFee' 53 }); 54 $('#portalOneContainer') 55 .on('portalOne.unload', function () { 56 }); 57 //setTimeout(function () { vfb.utility.removeSpinner(); }, 3000); 58 } 59 }).fail(function (xhr, status) { 60 VFBQuickPay.openModel("membership"); 61 }); 62}; 63VFBQuickPay.openModel = function (type) { 64 //vfb.utility.removeSpinner(); 65 var bodyWidth = $('body').width(); 66 if (bodyWidth > 768) { 67 var desktopModal = $('#quickpay__' + type + '-desktop-modal--unavailable'); 68 $('#quickpay__' + type + '-desktop-modal--unavailable').vfbModal(); 69 window.vfb.utility.moveFixedPosition(desktopModal); 70 } else { 71 var mobileModal = $('#quickpay__' + type + '-mobile-modal--unavailable'); 72 $('#quickpay__' + type + '-mobile-modal--unavailable').vfbModal(); 73 window.vfb.utility.moveFixedPosition(mobileModal); 74 } 75}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.