PageSourceSearch

https://topkinisis.com/js/services/creditCardPaymentServices.js

js topkinisis.com collected 2026-10-02 11:37:50 UTC 2,341 bytes, 68 lines download raw bytes

1mainApp.service("creditCardPaymentServices", function ($http, $q, sessionUtil) {
2
3    var creditCard = new creditCardObj();
4
5    this.doPayment = function () {
6        //console.log(JSON.stringify(creditCard));
7        var deferred = $q.defer();
8        var url = "/public-services/JccPaymentRequestServlet";
9        //var url2 = "/public-services/webresources/bookingpaymentdone";
10        $http({
11            method: 'POST',
12            url: url,
13            params: {paymentType: 'direct',  purchaseAmt: creditCard.amount, orderId: creditCard.orderId, cardNo: creditCard.ccNumber, cardExpDateMonth: creditCard.ccDExpMonth, cardExpDateYear: creditCard.ccDExpYear, cardCVV2: creditCard.ccCVV2}
14        }).then(function (data) {
15            //console.log("data: " + JSON.stringify(data));            
16            if (data.data.responseCode) {
17                $http({
18                    method: 'POST',
19                    url: url2,
20                    params: {OrderID: creditCard.orderId, ResponseCode: data.data.responseCode}
21                }).then(function (reponse) {
22                    if (data.ResponseCode === "1") {
23                        deferred.resolve(data);
24                    } else {
25                        deferred.reject(data.data.reasonCodeDescr);
26                    }
27                });
28            } else {
29                deferred.reject("Error get info from server");
30            }
31        });
32
33        return deferred.promise;
34
35    };
36
37    this.getCreditCardObject = function () {
38        creditCard = new creditCardObj();
39        var toDay = new Date();
40      //  creditCard.ccDExpMonth = toDay.getMonth() + 1;
41      //  creditCard.ccDExpYear = toDay.getFullYear();
42        return creditCard;
43    };
44
45    function creditCardObj() {
46        this.ccType = "";
47        this.ccHolder = "";
48        this.ccNumber = "";
49        this.ccDExpMonth = "";
50        this.ccDExpYear = "";
51        this.ccCVV2 = "";
52        this.amount = "";
53        this.orderId = "";
54    }
55    
56    
57    this.setCallingBeforedoPayment = function (refNumber, pageCallfrom, payAmount) {
58        var callingUrl = "/public-services/webresources/jcccalling";
59        $http({
60            method: 'PUT',
61            url: callingUrl,
62            params: {refno: refNumber,  callfrom: pageCallfrom, amount: payAmount}
63        });
64    };
65    
66});
67
68

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.