1function getLastPart(url) { 2 var parts = url.split("/"); 3 return (url.lastIndexOf('/') !== url.length - 1 4 ? parts[parts.length - 1] 5 : parts[parts.length - 2]); 6} 7 8 function checkout() { 9 let lang = 'en'; 10 const configuration = { 11 locale : locale, //default en 12 mode: DISPLAY_MODE.SEPARATED, //required, allowed values [POPUP, INSIDE_PAGE, SIDE_PAGE, SEPARATED] 13 }; 14 FawryPay.checkout(buildChargeRequest(), configuration); 15 } 16 17 function buildChargeRequest() { 18 19 //'CashOnDelivery', 'PayAtFawry', 'MWALLET', 'CARD' or 'VALU'. 20 const chargeRequest = { 21 merchantCode: merchant, // the merchant account number in Fawry 22 merchantRefNum: merchantRefNum, // order refrence number from merchant side 23 customerProfileId: customerProfileId, 24 customerMobile: customer.customerMobile, 25 customerEmail: customer.customerEmail, 26 customerName: customer.customerName, 27 chargeItems: productsJSON.orderItems, 28 paymentExpiry: paymentExpiry , 29 returnUrl: callBack, 30 signature: signature, 31 }; 32 if(paymentMethod != "default"){ 33 chargeRequest.paymentMethod = paymentMethod; 34 } 35 console.log(chargeRequest); 36 return chargeRequest; 37 } 38 39(function ($) { 40 'use strict'; 41 $(function () { 42 43 44 var mode = null 45 var orderDesc = null; 46 47 }); 48})(jQuery);
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.