function addOrder(app_key, args){
    if(args.transactionId){
      $.ajax({
         url: 'https://findshare.allday.com.ph/FindshareAffiliateScript/saveOrder',
         data: {
            appKey: app_key,
            productIds: args.productIds,
            transactionId: args.transactionId,
            totalOrder: args.totalOrder,
            currency: args.currency,
         },
         dataType: 'jsonp',
         jsonp: "callback",
         success: function (response) {
               //checkUser(url);
         }
      });
    }
}
function addVisit(app_key, args){
  if(args.productId){
    $.ajax({
       url: 'https://findshare.allday.com.ph/FindshareAffiliateScript/saveClick',
       data: {
          appKey: app_key,
          productId: args.productId,
       },
       dataType: 'jsonp',
       jsonp: "callback",
       success: function (response) {
             //checkUser(url);
       }
    });
  }
}
