PageSourceSearch

https://milestonerunning.com/assets/admin/scripts/models/merchant.js?v=1.2.0

js milestonerunning.com collected 2026-09-26 11:19:06 UTC 1,575 bytes, 54 lines download raw bytes

1
2var merchants = {
3    data: [],
4    configured: {},
5    init: function() {
6        merchants.events();
7        merchants.get();
8    },
9    events: function() {
10
11    },
12    get: function() {
13		  service.call("merchants", { }, merchants.getReturned, "GET");
14    },
15    getReturned: function(e) {
16      if (e.error) growler.error(e.error);
17      else {
18        merchants.data = e;
19        context.set("merchants", merchants.data);
20      }
21    },
22    getConfigured: function() {
23		  service.call("merchant", { }, merchants.configuredReturned, "GET");
24    },
25    configuredReturned: function(e) {
26      if (e.error) growler.error(e.error);
27      else {
28        merchants.configured = e;
29        context.set("siteMerchant", merchants.configured);
30      }
31    },
32    merchantReturned: function(e) {
33      if (e.error) growler.error(e.error);
34      else {
35        merchants.configured = e;
36        context.set("merchantConfigured", merchants.configured);
37      }
38    },
39    save: function(merchantId, variables) {
40		  service.call("merchant/save", { merchantId: merchantId, variables: variables}, merchants.configuredReturned);
41    },
42    getCheckout: function() {
43		  service.call("processor", { }, merchants.configuredReturned);
44    },
45    getMerchant: function() {
46      service.call("processor", { }, merchants.merchantReturned);
47    },
48    details: function(id) {
49      for (var i=0; i<merchants.data.length; i++) {
50        if (id==merchants.data[i].merchantId) return merchants.data[i];
51      }
52      return null;
53    }
54}

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.