aeremmiddleware 1.0.12 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -28
- package/dist/Finance/ingenicoHtml.js +114 -114
- package/dist/index.d.ts +0 -3
- package/dist/index.js +1 -4
- package/dist/index.js.map +1 -1
- package/package.json +21 -20
- package/src/Finance/Ingenico.types.ts +21 -21
- package/src/Finance/crimeCheck.ts +135 -135
- package/src/Finance/crimecheck.types.ts +31 -31
- package/src/Finance/encrypt.ts +18 -18
- package/src/Finance/idfy.ts +542 -542
- package/src/Finance/index.ts +13 -13
- package/src/Finance/ingenico.ts +110 -110
- package/src/Finance/ingenicoHtml.ts +119 -119
- package/src/Finance/novel.ts +226 -226
- package/src/Finance/novel.types.ts +24 -24
- package/src/Finance/qbrik.ts +822 -822
- package/src/Finance/qbrik.types.ts +81 -81
- package/src/Socials/Sms.types.ts +9 -9
- package/src/Socials/SmsSender.ts +78 -78
- package/src/Socials/Whatsapp.types.ts +95 -95
- package/src/Socials/index.ts +6 -6
- package/src/Socials/whatsApp.ts +188 -188
- package/src/index.ts +8 -9
- package/src/pushNotification/pushNotificationFCM.ts +35 -35
- package/tsconfig.json +111 -111
- package/dist/Finance/qbrik.d.ts +0 -100
- package/dist/Finance/qbrik.js +0 -506
- package/dist/Finance/qbrik.js.map +0 -1
- package/dist/Finance/qbrik.types.d.ts +0 -76
- package/dist/Finance/qbrik.types.js +0 -3
- package/dist/Finance/qbrik.types.js.map +0 -1
- package/dist/pushNotification/index.d.ts +0 -4
- package/dist/pushNotification/index.js +0 -8
- package/dist/pushNotification/index.js.map +0 -1
- package/dist/pushNotification/pushNotificationFCM.d.ts +0 -1
- package/dist/pushNotification/pushNotificationFCM.js +0 -42
- package/dist/pushNotification/pushNotificationFCM.js.map +0 -1
- package/src/pushNotification/index.ts +0 -5
package/README.md
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
# README #
|
|
2
|
-
|
|
3
|
-
This README would normally document whatever steps are necessary to get your application up and running.
|
|
4
|
-
|
|
5
|
-
### What is this repository for? ###
|
|
6
|
-
|
|
7
|
-
* Quick summary
|
|
8
|
-
* Version
|
|
9
|
-
* [Learn Markdown](https://bitbucket.org/tutorials/markdowndemo)
|
|
10
|
-
|
|
11
|
-
### How do I get set up? ###
|
|
12
|
-
|
|
13
|
-
* Summary of set up
|
|
14
|
-
* Configuration
|
|
15
|
-
* Dependencies
|
|
16
|
-
* Database configuration
|
|
17
|
-
* How to run tests
|
|
18
|
-
* Deployment instructions
|
|
19
|
-
|
|
20
|
-
### Contribution guidelines ###
|
|
21
|
-
|
|
22
|
-
* Writing tests
|
|
23
|
-
* Code review
|
|
24
|
-
* Other guidelines
|
|
25
|
-
|
|
26
|
-
### Who do I talk to? ###
|
|
27
|
-
|
|
28
|
-
* Repo owner or admin
|
|
1
|
+
# README #
|
|
2
|
+
|
|
3
|
+
This README would normally document whatever steps are necessary to get your application up and running.
|
|
4
|
+
|
|
5
|
+
### What is this repository for? ###
|
|
6
|
+
|
|
7
|
+
* Quick summary
|
|
8
|
+
* Version
|
|
9
|
+
* [Learn Markdown](https://bitbucket.org/tutorials/markdowndemo)
|
|
10
|
+
|
|
11
|
+
### How do I get set up? ###
|
|
12
|
+
|
|
13
|
+
* Summary of set up
|
|
14
|
+
* Configuration
|
|
15
|
+
* Dependencies
|
|
16
|
+
* Database configuration
|
|
17
|
+
* How to run tests
|
|
18
|
+
* Deployment instructions
|
|
19
|
+
|
|
20
|
+
### Contribution guidelines ###
|
|
21
|
+
|
|
22
|
+
* Writing tests
|
|
23
|
+
* Code review
|
|
24
|
+
* Other guidelines
|
|
25
|
+
|
|
26
|
+
### Who do I talk to? ###
|
|
27
|
+
|
|
28
|
+
* Repo owner or admin
|
|
29
29
|
* Other community or team contact
|
|
@@ -2,120 +2,120 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.mandateHtml = void 0;
|
|
4
4
|
const mandateHtml = (mandateData, tokenId) => {
|
|
5
|
-
return `<!DOCTYPE html>
|
|
6
|
-
<html>
|
|
7
|
-
<head>
|
|
8
|
-
<title>Checkout Demo</title>
|
|
9
|
-
<meta name="viewport" content="user-scalable=no, width=device-width,
|
|
10
|
-
initial-scale=1" / />
|
|
11
|
-
<script
|
|
12
|
-
src="https://www.paynimo.com/paynimocheckout/client/lib/jquery.min.js"
|
|
13
|
-
type="text/javascript"
|
|
14
|
-
></script>
|
|
15
|
-
</head>
|
|
16
|
-
|
|
17
|
-
<body>
|
|
18
|
-
<button id="btnSubmit">Register Now</button>
|
|
19
|
-
|
|
20
|
-
<script
|
|
21
|
-
type="text/javascript"
|
|
22
|
-
src="https://www.paynimo.com/paynimocheckout/server/lib/checkout.js"
|
|
23
|
-
></script>
|
|
24
|
-
|
|
25
|
-
<script type="text/javascript">
|
|
26
|
-
$(document).ready(function () {
|
|
27
|
-
function handleResponse(res) {
|
|
28
|
-
if (
|
|
29
|
-
typeof res != "undefined" &&
|
|
30
|
-
typeof res.paymentMethod != "undefined" &&
|
|
31
|
-
typeof res.paymentMethod.paymentTransaction != "undefined" &&
|
|
32
|
-
typeof res.paymentMethod.paymentTransaction.statusCode !=
|
|
33
|
-
"undefined" &&
|
|
34
|
-
res.paymentMethod.paymentTransaction.statusCode == "0300"
|
|
35
|
-
) {
|
|
36
|
-
// success block
|
|
37
|
-
console.log("success block",res);
|
|
38
|
-
} else if (
|
|
39
|
-
typeof res != "undefined" &&
|
|
40
|
-
typeof res.paymentMethod != "undefined" &&
|
|
41
|
-
typeof res.paymentMethod.paymentTransaction != "undefined" &&
|
|
42
|
-
typeof res.paymentMethod.paymentTransaction.statusCode !=
|
|
43
|
-
"undefined" &&
|
|
44
|
-
res.paymentMethod.paymentTransaction.statusCode == "0398"
|
|
45
|
-
) {
|
|
46
|
-
// initiated block
|
|
47
|
-
console.log("initiate block",res);
|
|
48
|
-
} else {
|
|
49
|
-
// error block
|
|
50
|
-
console.log("error block",res);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
$(document)
|
|
55
|
-
.off("click", "#btnSubmit")
|
|
56
|
-
.on("click", "#btnSubmit", function (e) {
|
|
57
|
-
e.preventDefault();
|
|
58
|
-
|
|
59
|
-
var reqJson = {
|
|
60
|
-
features: {
|
|
61
|
-
enableAbortResponse: true,
|
|
62
|
-
enableNewWindowFlow: true, //for hybrid applications please disable this by passing false
|
|
63
|
-
enableExpressPay: true,
|
|
64
|
-
enableMerTxnDetails: true,
|
|
65
|
-
siDetailsAtMerchantEnd: true,
|
|
66
|
-
enableSI: true,
|
|
67
|
-
},
|
|
68
|
-
consumerData: {
|
|
69
|
-
deviceId: "WEBSH2",
|
|
70
|
-
token:"${tokenId}",
|
|
71
|
-
returnUrl:
|
|
72
|
-
"https://aerem.co/", //merchant response page URL
|
|
73
|
-
responseHandler: handleResponse,
|
|
74
|
-
paymentMode: "${mandateData.paymentMode}",
|
|
75
|
-
merchantLogoUrl:
|
|
76
|
-
"https://www.paynimo.com/CompanyDocs/company-logo-vertical.png",
|
|
77
|
-
merchantId: "${mandateData.merchantId}",
|
|
78
|
-
currency: "INR",
|
|
79
|
-
consumerId: "${mandateData.consumerId}",
|
|
80
|
-
consumerMobileNo: "${mandateData.consumerMobileNo}",
|
|
81
|
-
consumerEmailId: "${mandateData.consumerEmailId}",
|
|
82
|
-
txnId: "${mandateData.txnId}",
|
|
83
|
-
|
|
84
|
-
items: [
|
|
85
|
-
{
|
|
86
|
-
itemId: "FIRST",
|
|
87
|
-
amount: "${mandateData.totalamount}",
|
|
88
|
-
comAmt: "0",
|
|
89
|
-
},
|
|
90
|
-
],
|
|
91
|
-
customStyle: {
|
|
92
|
-
PRIMARY_COLOR_CODE: "#45beaa",
|
|
93
|
-
SECONDARY_COLOR_CODE: "#FFFFFF",
|
|
94
|
-
BUTTON_COLOR_CODE_1: "#2d8c8c",
|
|
95
|
-
BUTTON_COLOR_CODE_2: "#FFFFFF",
|
|
96
|
-
},
|
|
97
|
-
accountNo: "${mandateData.accountNo}", //Pass this if accountNo is captured at merchant side for eMandate/eNACH
|
|
98
|
-
|
|
99
|
-
ifscCode: "${mandateData.ifscCode}", //Pass this if ifscCode is captured at merchant side.
|
|
100
|
-
accountType: "${mandateData.accountType}", //Required for eNACH registration this is mandatory field
|
|
101
|
-
debitStartDate: "${mandateData.debitStartDate}",
|
|
102
|
-
debitEndDate: "${mandateData.debitEndDate}",
|
|
103
|
-
maxAmount: "${mandateData.maxAmount}",
|
|
104
|
-
amountType: "${mandateData.amountType}",
|
|
105
|
-
frequency: "${mandateData.frequency}",
|
|
106
|
-
},
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
$.pnCheckout(reqJson);
|
|
110
|
-
if (reqJson.features.enableNewWindowFlow) {
|
|
111
|
-
pnCheckoutShared.openNewWindow();
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
});
|
|
115
|
-
</script>
|
|
116
|
-
</body>
|
|
117
|
-
</html>
|
|
118
|
-
|
|
5
|
+
return `<!DOCTYPE html>
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>Checkout Demo</title>
|
|
9
|
+
<meta name="viewport" content="user-scalable=no, width=device-width,
|
|
10
|
+
initial-scale=1" / />
|
|
11
|
+
<script
|
|
12
|
+
src="https://www.paynimo.com/paynimocheckout/client/lib/jquery.min.js"
|
|
13
|
+
type="text/javascript"
|
|
14
|
+
></script>
|
|
15
|
+
</head>
|
|
16
|
+
|
|
17
|
+
<body>
|
|
18
|
+
<button id="btnSubmit">Register Now</button>
|
|
19
|
+
|
|
20
|
+
<script
|
|
21
|
+
type="text/javascript"
|
|
22
|
+
src="https://www.paynimo.com/paynimocheckout/server/lib/checkout.js"
|
|
23
|
+
></script>
|
|
24
|
+
|
|
25
|
+
<script type="text/javascript">
|
|
26
|
+
$(document).ready(function () {
|
|
27
|
+
function handleResponse(res) {
|
|
28
|
+
if (
|
|
29
|
+
typeof res != "undefined" &&
|
|
30
|
+
typeof res.paymentMethod != "undefined" &&
|
|
31
|
+
typeof res.paymentMethod.paymentTransaction != "undefined" &&
|
|
32
|
+
typeof res.paymentMethod.paymentTransaction.statusCode !=
|
|
33
|
+
"undefined" &&
|
|
34
|
+
res.paymentMethod.paymentTransaction.statusCode == "0300"
|
|
35
|
+
) {
|
|
36
|
+
// success block
|
|
37
|
+
console.log("success block",res);
|
|
38
|
+
} else if (
|
|
39
|
+
typeof res != "undefined" &&
|
|
40
|
+
typeof res.paymentMethod != "undefined" &&
|
|
41
|
+
typeof res.paymentMethod.paymentTransaction != "undefined" &&
|
|
42
|
+
typeof res.paymentMethod.paymentTransaction.statusCode !=
|
|
43
|
+
"undefined" &&
|
|
44
|
+
res.paymentMethod.paymentTransaction.statusCode == "0398"
|
|
45
|
+
) {
|
|
46
|
+
// initiated block
|
|
47
|
+
console.log("initiate block",res);
|
|
48
|
+
} else {
|
|
49
|
+
// error block
|
|
50
|
+
console.log("error block",res);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
$(document)
|
|
55
|
+
.off("click", "#btnSubmit")
|
|
56
|
+
.on("click", "#btnSubmit", function (e) {
|
|
57
|
+
e.preventDefault();
|
|
58
|
+
|
|
59
|
+
var reqJson = {
|
|
60
|
+
features: {
|
|
61
|
+
enableAbortResponse: true,
|
|
62
|
+
enableNewWindowFlow: true, //for hybrid applications please disable this by passing false
|
|
63
|
+
enableExpressPay: true,
|
|
64
|
+
enableMerTxnDetails: true,
|
|
65
|
+
siDetailsAtMerchantEnd: true,
|
|
66
|
+
enableSI: true,
|
|
67
|
+
},
|
|
68
|
+
consumerData: {
|
|
69
|
+
deviceId: "WEBSH2",
|
|
70
|
+
token:"${tokenId}",
|
|
71
|
+
returnUrl:
|
|
72
|
+
"https://aerem.co/", //merchant response page URL
|
|
73
|
+
responseHandler: handleResponse,
|
|
74
|
+
paymentMode: "${mandateData.paymentMode}",
|
|
75
|
+
merchantLogoUrl:
|
|
76
|
+
"https://www.paynimo.com/CompanyDocs/company-logo-vertical.png",
|
|
77
|
+
merchantId: "${mandateData.merchantId}",
|
|
78
|
+
currency: "INR",
|
|
79
|
+
consumerId: "${mandateData.consumerId}",
|
|
80
|
+
consumerMobileNo: "${mandateData.consumerMobileNo}",
|
|
81
|
+
consumerEmailId: "${mandateData.consumerEmailId}",
|
|
82
|
+
txnId: "${mandateData.txnId}",
|
|
83
|
+
|
|
84
|
+
items: [
|
|
85
|
+
{
|
|
86
|
+
itemId: "FIRST",
|
|
87
|
+
amount: "${mandateData.totalamount}",
|
|
88
|
+
comAmt: "0",
|
|
89
|
+
},
|
|
90
|
+
],
|
|
91
|
+
customStyle: {
|
|
92
|
+
PRIMARY_COLOR_CODE: "#45beaa",
|
|
93
|
+
SECONDARY_COLOR_CODE: "#FFFFFF",
|
|
94
|
+
BUTTON_COLOR_CODE_1: "#2d8c8c",
|
|
95
|
+
BUTTON_COLOR_CODE_2: "#FFFFFF",
|
|
96
|
+
},
|
|
97
|
+
accountNo: "${mandateData.accountNo}", //Pass this if accountNo is captured at merchant side for eMandate/eNACH
|
|
98
|
+
|
|
99
|
+
ifscCode: "${mandateData.ifscCode}", //Pass this if ifscCode is captured at merchant side.
|
|
100
|
+
accountType: "${mandateData.accountType}", //Required for eNACH registration this is mandatory field
|
|
101
|
+
debitStartDate: "${mandateData.debitStartDate}",
|
|
102
|
+
debitEndDate: "${mandateData.debitEndDate}",
|
|
103
|
+
maxAmount: "${mandateData.maxAmount}",
|
|
104
|
+
amountType: "${mandateData.amountType}",
|
|
105
|
+
frequency: "${mandateData.frequency}",
|
|
106
|
+
},
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
$.pnCheckout(reqJson);
|
|
110
|
+
if (reqJson.features.enableNewWindowFlow) {
|
|
111
|
+
pnCheckoutShared.openNewWindow();
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
</script>
|
|
116
|
+
</body>
|
|
117
|
+
</html>
|
|
118
|
+
|
|
119
119
|
`;
|
|
120
120
|
};
|
|
121
121
|
exports.mandateHtml = mandateHtml;
|
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,4 @@ export declare const AeremMiddleware: {
|
|
|
10
10
|
whatsapp: typeof import("./Socials/whatsApp").default;
|
|
11
11
|
text: typeof import("./Socials/SmsSender").default;
|
|
12
12
|
};
|
|
13
|
-
push: {
|
|
14
|
-
pushNoti: typeof import("./pushNotification/pushNotificationFCM").sendPushNotification;
|
|
15
|
-
};
|
|
16
13
|
};
|
package/dist/index.js
CHANGED
|
@@ -3,10 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AeremMiddleware = void 0;
|
|
4
4
|
const Finance_1 = require("./Finance");
|
|
5
5
|
const Socials_1 = require("./Socials");
|
|
6
|
-
const pushNotification_1 = require("./pushNotification");
|
|
7
6
|
exports.AeremMiddleware = {
|
|
8
|
-
finance: Finance_1.finance,
|
|
9
|
-
socials: Socials_1.socials,
|
|
10
|
-
push: pushNotification_1.push,
|
|
7
|
+
finance: Finance_1.finance, socials: Socials_1.socials
|
|
11
8
|
};
|
|
12
9
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AACpC,uCAAoC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AACpC,uCAAoC;AAGtB,QAAA,eAAe,GAAG;IAC5B,OAAO,EAAP,iBAAO,EAAC,OAAO,EAAP,iBAAO;CAElB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "aeremmiddleware",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "",
|
|
5
|
-
"type": "dist/index.d.ts",
|
|
6
|
-
"main": "dist/index.js",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"build": "tsc",
|
|
9
|
-
"prod": "node ./build/src/index.js"
|
|
10
|
-
},
|
|
11
|
-
"keywords": [],
|
|
12
|
-
"author": "",
|
|
13
|
-
"license": "ISC",
|
|
14
|
-
"dependencies": {
|
|
15
|
-
"axios": "^1.5.1"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "aeremmiddleware",
|
|
3
|
+
"version": "1.0.13",
|
|
4
|
+
"description": "",
|
|
5
|
+
"type": "dist/index.d.ts",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "tsc",
|
|
9
|
+
"prod": "node ./build/src/index.js"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [],
|
|
12
|
+
"author": "",
|
|
13
|
+
"license": "ISC",
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"axios": "^1.5.1",
|
|
16
|
+
"fcm-node": "^1.6.1"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@types/node": "^20.8.2"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export interface MandateDataType {
|
|
2
|
-
merchantId: string;
|
|
3
|
-
txnId: string;
|
|
4
|
-
totalamount: string;
|
|
5
|
-
accountNo: string;
|
|
6
|
-
consumerId: string;
|
|
7
|
-
consumerMobileNo: string;
|
|
8
|
-
consumerEmailId: string;
|
|
9
|
-
debitStartDate: string;
|
|
10
|
-
debitEndDate: string;
|
|
11
|
-
maxAmount: string;
|
|
12
|
-
amountType: string;
|
|
13
|
-
frequency: string;
|
|
14
|
-
cardNumber?: string;
|
|
15
|
-
expMonth?: string;
|
|
16
|
-
expYear?: string;
|
|
17
|
-
cvvCode?: string;
|
|
18
|
-
paymentMode: string;
|
|
19
|
-
ifscCode: string;
|
|
20
|
-
accountType: string;
|
|
21
|
-
}
|
|
1
|
+
export interface MandateDataType {
|
|
2
|
+
merchantId: string;
|
|
3
|
+
txnId: string;
|
|
4
|
+
totalamount: string;
|
|
5
|
+
accountNo: string;
|
|
6
|
+
consumerId: string;
|
|
7
|
+
consumerMobileNo: string;
|
|
8
|
+
consumerEmailId: string;
|
|
9
|
+
debitStartDate: string;
|
|
10
|
+
debitEndDate: string;
|
|
11
|
+
maxAmount: string;
|
|
12
|
+
amountType: string;
|
|
13
|
+
frequency: string;
|
|
14
|
+
cardNumber?: string;
|
|
15
|
+
expMonth?: string;
|
|
16
|
+
expYear?: string;
|
|
17
|
+
cvvCode?: string;
|
|
18
|
+
paymentMode: string;
|
|
19
|
+
ifscCode: string;
|
|
20
|
+
accountType: string;
|
|
21
|
+
}
|