node-paytmpg 7.5.16 → 7.5.17
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/package.json +1 -1
- package/dist/app/controllers/adapters/open_money.d.ts +0 -23
- package/dist/app/controllers/adapters/open_money.js +0 -399
- package/dist/app/controllers/adapters/paytm.d.ts +0 -2
- package/dist/app/controllers/adapters/paytm.js +0 -34
- package/dist/app/controllers/adapters/payu.d.ts +0 -50
- package/dist/app/controllers/adapters/payu.js +0 -238
- package/dist/app/controllers/checksum/PaytmChecksum.d.ts +0 -13
- package/dist/app/controllers/checksum/PaytmChecksum.js +0 -118
- package/dist/app/controllers/checksum/checksum.d.ts +0 -15
- package/dist/app/controllers/checksum/checksum.js +0 -158
- package/dist/app/controllers/checksum/crypt.d.ts +0 -15
- package/dist/app/controllers/checksum/crypt.js +0 -117
- package/dist/app/controllers/checksum/server.d.ts +0 -1
- package/dist/app/controllers/checksum/server.js +0 -132
- package/dist/app/controllers/htmlhelper.d.ts +0 -9
- package/dist/app/controllers/htmlhelper.js +0 -95
- package/dist/app/controllers/payment.controller.d.ts +0 -33
- package/dist/app/controllers/payment.controller.js +0 -1128
- package/dist/app/controllers/static/loadingsvg.d.ts +0 -1
- package/dist/app/controllers/static/loadingsvg.js +0 -54
- package/dist/app/controllers/user.controller.d.ts +0 -9
- package/dist/app/controllers/user.controller.js +0 -53
- package/dist/app/models/index.d.ts +0 -103
- package/dist/app/models/index.js +0 -2
- package/dist/app/routes/payment_route.d.ts +0 -2
- package/dist/app/routes/payment_route.js +0 -46
- package/dist/app/utils/buildConfig.d.ts +0 -4
- package/dist/app/utils/buildConfig.js +0 -224
- package/dist/app/utils/utils.d.ts +0 -5
- package/dist/app/utils/utils.js +0 -20
- package/dist/app/views/home.hbs +0 -22
- package/dist/app/views/init.hbs +0 -104
- package/dist/app/views/layouts/index.hbs +0 -53
- package/dist/app/views/result.hbs +0 -33
- package/dist/index.d.ts +0 -10
- package/dist/index.js +0 -120
- package/dist/package.json +0 -68
package/dist/app/views/init.hbs
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
<div class="checkout-grid">
|
|
2
|
-
<aside class="product-panel card">
|
|
3
|
-
{{#if productImage}}
|
|
4
|
-
<div class="product-preview">
|
|
5
|
-
<img src="{{productImage}}" alt="{{PRODUCT_NAME}}" style="width:100%;height:100%;object-fit:cover" />
|
|
6
|
-
</div>
|
|
7
|
-
{{/if}}
|
|
8
|
-
|
|
9
|
-
<div class="product-price">
|
|
10
|
-
<div class="pill">Product</div>
|
|
11
|
-
<div class="price">{{PRODUCT_NAME}}</div>
|
|
12
|
-
</div>
|
|
13
|
-
{{#if PRODUCT_DESC}}
|
|
14
|
-
<p class="helper" style="margin-top:14px;">{{PRODUCT_DESC}}</p>
|
|
15
|
-
{{/if}}
|
|
16
|
-
</aside>
|
|
17
|
-
|
|
18
|
-
<section class="form-panel card">
|
|
19
|
-
<header class="card__header">
|
|
20
|
-
<div>
|
|
21
|
-
<p class="eyebrow">Payment</p>
|
|
22
|
-
<h2>Review & pay</h2>
|
|
23
|
-
</div>
|
|
24
|
-
<div class="amount-chip">₹ {{TXN_AMOUNT}}</div>
|
|
25
|
-
</header>
|
|
26
|
-
|
|
27
|
-
<p class="helper">Your payment is processed over an encrypted channel. Double-check the details before you continue.</p>
|
|
28
|
-
|
|
29
|
-
<form action="{{action}}" method="POST" class="form-grid" id="payment-form">
|
|
30
|
-
{{#if check}}
|
|
31
|
-
<label class="field">
|
|
32
|
-
<span class="field__label">Full Name</span>
|
|
33
|
-
<input type="text" name="NAME" required value="{{NAME}}" {{readonly}} />
|
|
34
|
-
</label>
|
|
35
|
-
{{else}}
|
|
36
|
-
<input type="hidden" name="NAME" required value="{{NAME}}" {{readonly}} />
|
|
37
|
-
{{/if}}
|
|
38
|
-
|
|
39
|
-
<label class="field">
|
|
40
|
-
<span class="field__label">Email address</span>
|
|
41
|
-
<input type="email" name="EMAIL" required value="{{EMAIL}}" {{readonly}} />
|
|
42
|
-
</label>
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
{{#if MOBILE_NO}}
|
|
46
|
-
<label class="field">
|
|
47
|
-
<span class="field__label">Phone</span>
|
|
48
|
-
<input type="text" name="MOBILE_NO" required value="{{MOBILE_NO}}" {{readonly}} />
|
|
49
|
-
</label>
|
|
50
|
-
{{/if}}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
{{#if check}}
|
|
55
|
-
<label class="field">
|
|
56
|
-
<span class="field__label">Product</span>
|
|
57
|
-
<input type="text" name="PRODUCT_NAME" required value="{{PRODUCT_NAME}}" {{readonly}} />
|
|
58
|
-
</label>
|
|
59
|
-
{{else}}
|
|
60
|
-
<input type="hidden" name="PRODUCT_NAME" required value="{{PRODUCT_NAME}}" {{readonly}} />
|
|
61
|
-
{{/if}}
|
|
62
|
-
|
|
63
|
-
<label class="field">
|
|
64
|
-
<span class="field__label">Amount</span>
|
|
65
|
-
<input type="text" name="TXN_AMOUNT" required value="{{TXN_AMOUNT}}" {{readonly}} />
|
|
66
|
-
</label>
|
|
67
|
-
|
|
68
|
-
<div style="grid-column:1 / -1; display:flex; gap:10px; align-items:center; justify-content:space-between;">
|
|
69
|
-
<label class="checkbox" style="margin:0">
|
|
70
|
-
<input type="checkbox" name="save_cc" checked="checked" />
|
|
71
|
-
<span>I agree to the merchant terms</span>
|
|
72
|
-
</label>
|
|
73
|
-
<div style="font-size:12px; color:rgba(255,255,255,0.6)">Secure by PCI-DSS</div>
|
|
74
|
-
</div>
|
|
75
|
-
|
|
76
|
-
<button id="pay-button" type="submit" class="button">{{BUTTON}}</button>
|
|
77
|
-
<input type="hidden" name="CLIENT_ID" value="{{CLIENT_ID}}" {{readonly}} />
|
|
78
|
-
|
|
79
|
-
<input type="hidden" name="MID" value="{{MID}}" {{readonly}} />
|
|
80
|
-
<input type="hidden" name="WEBSITE" value="{{WEBSITE}}" {{readonly}} />
|
|
81
|
-
<input type="hidden" name="ORDER_ID" value="{{ORDER_ID}}" {{readonly}} />
|
|
82
|
-
<input type="hidden" name="CUST_ID" value="{{CUST_ID}}" {{readonly}} />
|
|
83
|
-
<input type="hidden" name="INDUSTRY_TYPE_ID" value="{{INDUSTRY_TYPE_ID}}" {{readonly}} />
|
|
84
|
-
<input type="hidden" name="CHANNEL_ID" value="{{CHANNEL_ID}}" {{readonly}} />
|
|
85
|
-
<input type="hidden" name="CALLBACK_URL" value="{{CALLBACK_URL}}" {{readonly}} />
|
|
86
|
-
<input type="hidden" name="CHECKSUMHASH" value="{{CHECKSUMHASH}}" {{readonly}} />
|
|
87
|
-
</form>
|
|
88
|
-
</section>
|
|
89
|
-
</div>
|
|
90
|
-
|
|
91
|
-
<script>
|
|
92
|
-
var enableConfirmationPage = {{#if enableConfirmationPage}}true{{else}}false{{/if}};
|
|
93
|
-
var readonly = {{#if readonly}}true{{else}}false{{/if}};
|
|
94
|
-
// if in readonly mode( all data recieved) and enableConfirmationPage is false, submit the form automatically
|
|
95
|
-
// show a spinner or something while redirecting to payment gateway to avoid user confusion
|
|
96
|
-
// instead of the form
|
|
97
|
-
if (readonly && !enableConfirmationPage) {
|
|
98
|
-
const form = document.getElementById('payment-form');
|
|
99
|
-
const payButton = document.getElementById('pay-button');
|
|
100
|
-
payButton.disabled = true;
|
|
101
|
-
payButton.innerText = 'Redirecting...';
|
|
102
|
-
form.submit();
|
|
103
|
-
}
|
|
104
|
-
</script>
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
-
<title>{{brand}} · Secure Checkout</title>
|
|
7
|
-
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
8
|
-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
9
|
-
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap" rel="stylesheet" />
|
|
10
|
-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" />
|
|
11
|
-
<link rel="stylesheet" href="/{{path_prefix}}/css/style.css" />
|
|
12
|
-
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3E%3Crect%20width='16'%20height='16'%20rx='3'%20fill='%23ff5722'/%3E%3C/svg%3E" />
|
|
13
|
-
<link rel="shortcut icon" href="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3E%3Crect%20width='16'%20height='16'%20rx='3'%20fill='%23ff5722'/%3E%3C/svg%3E" />
|
|
14
|
-
<style>
|
|
15
|
-
:root {
|
|
16
|
-
--color-primary: {{#if theme.primary}}{{theme.primary}}{{else}}#2f8bff{{/if}};
|
|
17
|
-
--color-accent: {{#if theme.accent}}{{theme.accent}}{{else}}#5ce1e6{{/if}};
|
|
18
|
-
--color-surface: {{#if theme.surface}}{{theme.surface}}{{else}}#0f1021{{/if}};
|
|
19
|
-
--color-text: {{#if theme.text}}{{theme.text}}{{else}}#e9ecf2{{/if}};
|
|
20
|
-
--color-success: {{#if theme.success}}{{theme.success}}{{else}}#24cf5f{{/if}};
|
|
21
|
-
--color-danger: {{#if theme.danger}}{{theme.danger}}{{else}}#ff6b6b{{/if}};
|
|
22
|
-
--color-outline: rgba(255,255,255,0.08);
|
|
23
|
-
--radius: 14px;
|
|
24
|
-
}
|
|
25
|
-
</style>
|
|
26
|
-
</head>
|
|
27
|
-
<body class="theme-{{#if theme.name}}{{theme.name}}{{else}}dark{{/if}}">
|
|
28
|
-
<div class="shell">
|
|
29
|
-
<header class="shell__header">
|
|
30
|
-
<div class="brand">
|
|
31
|
-
{{#if theme.logo}}
|
|
32
|
-
<span class="brand__mark brand__mark--img"><img src="{{theme.logo}}" alt="{{theme.brand}} logo"></span>
|
|
33
|
-
{{else}}
|
|
34
|
-
<span class="brand__mark">{{theme.brand}}</span>
|
|
35
|
-
{{/if}}
|
|
36
|
-
<div class="brand__text">
|
|
37
|
-
<div class="brand__title">{{theme.brand}}</div>
|
|
38
|
-
<div class="brand__meta">Secure checkout</div>
|
|
39
|
-
</div>
|
|
40
|
-
</div>
|
|
41
|
-
<div class="pill">Encrypted</div>
|
|
42
|
-
</header>
|
|
43
|
-
|
|
44
|
-
<main class="shell__content">
|
|
45
|
-
{{{body}}}
|
|
46
|
-
</main>
|
|
47
|
-
|
|
48
|
-
<footer class="shell__footer">
|
|
49
|
-
<span>Protected by {{theme.brand}}</span>
|
|
50
|
-
</footer>
|
|
51
|
-
</div>
|
|
52
|
-
</body>
|
|
53
|
-
</html>
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
<section class="card" style="text-align:center; padding:36px 28px;">
|
|
2
|
-
<div style="display:flex; flex-direction:column; align-items:center; gap:18px;" class="status-{{status}}">
|
|
3
|
-
<div style="width:84px; height:84px; border-radius:999px; display:grid; place-items:center; background:rgba(255,255,255,0.03);">
|
|
4
|
-
<svg class="icon-success" width="40" height="40" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 6L9 17l-5-5" stroke="#4cff9f" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
|
5
|
-
<svg class="icon-fail" width="40" height="40" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" style="display:none"><circle cx="12" cy="12" r="9" stroke="#ff9b9b" stroke-width="2.2"/><path d="M12 8v5" stroke="#ff9b9b" stroke-width="2.2" stroke-linecap="round"/><path d="M12 16h.01" stroke="#ff9b9b" stroke-width="2.2" stroke-linecap="round"/></svg>
|
|
6
|
-
</div>
|
|
7
|
-
|
|
8
|
-
<div>
|
|
9
|
-
<h2 style="margin:0">Payment</h2>
|
|
10
|
-
<p class="helper" style="margin-top:6px">{{message}}</p>
|
|
11
|
-
</div>
|
|
12
|
-
|
|
13
|
-
<div class="result-grid" style="max-width:560px; width:100%;">
|
|
14
|
-
<div class="result-item">
|
|
15
|
-
<p class="label">Order ID</p>
|
|
16
|
-
<p class="value">{{orderId}}</p>
|
|
17
|
-
</div>
|
|
18
|
-
<div class="result-item">
|
|
19
|
-
<p class="label">Transaction ID</p>
|
|
20
|
-
<p class="value">{{txnId}}</p>
|
|
21
|
-
</div>
|
|
22
|
-
<div class="result-item">
|
|
23
|
-
<p class="label">Amount</p>
|
|
24
|
-
<p class="value">{{amount}}</p>
|
|
25
|
-
</div>
|
|
26
|
-
<div class="result-item">
|
|
27
|
-
<p class="label">Status</p>
|
|
28
|
-
<p class="value">{{status}}</p>
|
|
29
|
-
</div>
|
|
30
|
-
</div>
|
|
31
|
-
|
|
32
|
-
</div>
|
|
33
|
-
</section>
|
package/dist/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Application, RequestHandler, Router } from 'express';
|
|
2
|
-
import { NPCallbacks, NPConfig, NPTableNames } from './app/models';
|
|
3
|
-
import { MultiDbORM } from 'multi-db-orm';
|
|
4
|
-
export * from './app/models';
|
|
5
|
-
export declare function attachRawBodyAndEngine(app: Application, userConfig?: Partial<NPConfig>): void;
|
|
6
|
-
export declare function createPaymentMiddleware(app: Application, userConfig: NPConfig, db: MultiDbORM, callbacks?: NPCallbacks, authenticationMiddleware?: RequestHandler, tableNames?: NPTableNames): Router;
|
|
7
|
-
declare const _default: {
|
|
8
|
-
createPaymentMiddleware: typeof createPaymentMiddleware;
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
package/dist/index.js
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
-
};
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.attachRawBodyAndEngine = attachRawBodyAndEngine;
|
|
21
|
-
exports.createPaymentMiddleware = createPaymentMiddleware;
|
|
22
|
-
const express_1 = __importDefault(require("express"));
|
|
23
|
-
const path_1 = __importDefault(require("path"));
|
|
24
|
-
const body_parser_1 = __importDefault(require("body-parser"));
|
|
25
|
-
const express_handlebars_1 = __importDefault(require("express-handlebars"));
|
|
26
|
-
const payment_controller_1 = require("./app/controllers/payment.controller");
|
|
27
|
-
const buildConfig_1 = require("./app/utils/buildConfig");
|
|
28
|
-
__exportStar(require("./app/models"), exports);
|
|
29
|
-
function attachRawBodyAndEngine(app, userConfig = {}) {
|
|
30
|
-
const config = (0, buildConfig_1.buildConfig)(userConfig);
|
|
31
|
-
const saveRawBody = (req, res, buf) => {
|
|
32
|
-
req.rawBody = buf && buf.toString();
|
|
33
|
-
};
|
|
34
|
-
app.use(body_parser_1.default.urlencoded({ extended: true }));
|
|
35
|
-
app.use(body_parser_1.default.json({ verify: saveRawBody }));
|
|
36
|
-
const viewRoot = config.templateDir
|
|
37
|
-
? path_1.default.resolve(config.templateDir)
|
|
38
|
-
: path_1.default.join(__dirname, 'app', 'views');
|
|
39
|
-
const layoutPath = path_1.default.join(viewRoot, 'layouts', 'index.hbs');
|
|
40
|
-
app.engine('hbs', (0, express_handlebars_1.default)({
|
|
41
|
-
extname: 'hbs',
|
|
42
|
-
defaultLayout: layoutPath,
|
|
43
|
-
helpers: {
|
|
44
|
-
theme_color: () => config.theme_color,
|
|
45
|
-
logo: () => config.logo,
|
|
46
|
-
brand: () => config.brand || 'Secure Pay',
|
|
47
|
-
},
|
|
48
|
-
}));
|
|
49
|
-
app.set('view engine', 'handlebars');
|
|
50
|
-
app.set('attachRawBodyAndEngine', true);
|
|
51
|
-
}
|
|
52
|
-
function createPaymentMiddleware(app, userConfig, db, callbacks, authenticationMiddleware, tableNames) {
|
|
53
|
-
//check attachRawBodyAndEngine
|
|
54
|
-
if (!app.get('attachRawBodyAndEngine')) {
|
|
55
|
-
console.warn('[node-paytmpg]: attachRawBodyAndEngine not attached. Make sure to call attachRawBodyAndEngine() or make sure hbs view engine is set and req.rawBody is available.');
|
|
56
|
-
attachRawBodyAndEngine(app, userConfig);
|
|
57
|
-
}
|
|
58
|
-
const config = (0, buildConfig_1.buildConfig)(userConfig);
|
|
59
|
-
const subApp = express_1.default.Router();
|
|
60
|
-
if (!authenticationMiddleware) {
|
|
61
|
-
authenticationMiddleware = (req, res, next) => next();
|
|
62
|
-
}
|
|
63
|
-
const saveRawBody = (req, res, buf) => {
|
|
64
|
-
req.rawBody = buf && buf.toString();
|
|
65
|
-
};
|
|
66
|
-
subApp.use(body_parser_1.default.urlencoded({ extended: true }));
|
|
67
|
-
subApp.use(body_parser_1.default.json({ verify: saveRawBody }));
|
|
68
|
-
callbacks = callbacks || config.callbacks;
|
|
69
|
-
const pc = new payment_controller_1.PaymentController(config, db, callbacks, tableNames);
|
|
70
|
-
subApp.use((req, res, next) => {
|
|
71
|
-
let _client = (0, buildConfig_1.withClientConfigOverrides)(config, req);
|
|
72
|
-
const theme = _client.theme || {};
|
|
73
|
-
res.locals.theme = {
|
|
74
|
-
primary: theme.primary || '#086cfe',
|
|
75
|
-
accent: theme.accent || '#5ce1e6',
|
|
76
|
-
surface: theme.surface || '#0f1021',
|
|
77
|
-
text: theme.text || '#e9ecf2',
|
|
78
|
-
success: theme.success || '#24cf5f',
|
|
79
|
-
danger: theme.danger || '#ff6b6b',
|
|
80
|
-
};
|
|
81
|
-
res.locals.themeName = theme.name || 'dark';
|
|
82
|
-
res.locals.brand = theme.brand || 'Secure Pay';
|
|
83
|
-
res.locals.logo = theme.logo || '';
|
|
84
|
-
res.locals.path_prefix = _client.path_prefix;
|
|
85
|
-
next();
|
|
86
|
-
});
|
|
87
|
-
subApp.use((req, res, next) => {
|
|
88
|
-
console.log('Received request at', req.originalUrl);
|
|
89
|
-
next();
|
|
90
|
-
});
|
|
91
|
-
subApp.all('/init', authenticationMiddleware, (req, res) => {
|
|
92
|
-
pc.init(req, res);
|
|
93
|
-
});
|
|
94
|
-
subApp.all('/callback', authenticationMiddleware, (req, res) => {
|
|
95
|
-
pc.callback(req, res);
|
|
96
|
-
});
|
|
97
|
-
subApp.all(['/api/webhook', '/api/webhook/*'], authenticationMiddleware, (req, res) => {
|
|
98
|
-
pc.webhook(req, res);
|
|
99
|
-
});
|
|
100
|
-
subApp.all('/api/status', authenticationMiddleware, (req, res) => {
|
|
101
|
-
pc.status(req, res);
|
|
102
|
-
});
|
|
103
|
-
subApp.all('/api/transactions', authenticationMiddleware, (req, res) => {
|
|
104
|
-
pc.getTransactions(req, res);
|
|
105
|
-
});
|
|
106
|
-
subApp.all('/api/createTxn/token', authenticationMiddleware, (req, res) => {
|
|
107
|
-
pc.createTxnToken(req, res);
|
|
108
|
-
});
|
|
109
|
-
subApp.all('/api/createTxn', authenticationMiddleware, (req, res) => {
|
|
110
|
-
pc.createTxn(req, res);
|
|
111
|
-
});
|
|
112
|
-
subApp.all('/', authenticationMiddleware, (req, res) => {
|
|
113
|
-
pc.init(req, res);
|
|
114
|
-
});
|
|
115
|
-
subApp.use(express_1.default.static(path_1.default.join(__dirname, 'public')), authenticationMiddleware, (req, res) => {
|
|
116
|
-
pc.init(req, res);
|
|
117
|
-
});
|
|
118
|
-
return subApp;
|
|
119
|
-
}
|
|
120
|
-
exports.default = { createPaymentMiddleware };
|
package/dist/package.json
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "node-paytmpg",
|
|
3
|
-
"version": "7.5.16",
|
|
4
|
-
"description": "Payment Gateway Integration using NodeJS",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"start": "node example.js",
|
|
9
|
-
"clean": "node -e \"require('fs').rmSync('dist', { recursive: true, force: true })\"",
|
|
10
|
-
"build:ts": "tsc -p tsconfig.json",
|
|
11
|
-
"copy:views": "copyfiles -u 1 \"app/views/**/*\" dist/app",
|
|
12
|
-
"copy:public": "copyfiles -u 1 \"public/**/*\" dist/public",
|
|
13
|
-
"build": "npm-run-all clean build:ts copy:views copy:public",
|
|
14
|
-
"prepare": "npm run build",
|
|
15
|
-
"prepublishOnly": "npm version patch && npm run build"
|
|
16
|
-
},
|
|
17
|
-
"repository": {
|
|
18
|
-
"type": "git",
|
|
19
|
-
"url": "git+https://github.com/shiveshnavin/node_paytm.git"
|
|
20
|
-
},
|
|
21
|
-
"keywords": [
|
|
22
|
-
"nodejs",
|
|
23
|
-
"paytm",
|
|
24
|
-
"payment",
|
|
25
|
-
"gateway",
|
|
26
|
-
"paytm",
|
|
27
|
-
"api",
|
|
28
|
-
"paytm",
|
|
29
|
-
"nodejs"
|
|
30
|
-
],
|
|
31
|
-
"author": "Shivesh Navin",
|
|
32
|
-
"license": "MIT",
|
|
33
|
-
"bugs": {
|
|
34
|
-
"url": "https://github.com/shiveshnavin/node_paytm/issues"
|
|
35
|
-
},
|
|
36
|
-
"homepage": "https://github.com/shiveshnavin/node_paytm#readme",
|
|
37
|
-
"dependencies": {
|
|
38
|
-
"axios": "^1.13.5",
|
|
39
|
-
"body-parser": "^1.18.3",
|
|
40
|
-
"crypto": "^1.0.1",
|
|
41
|
-
"dotenv": "^17.2.3",
|
|
42
|
-
"express": "^4.16.4",
|
|
43
|
-
"express-handlebars": "^3.1.0",
|
|
44
|
-
"mongoose": "^5.4.16",
|
|
45
|
-
"multi-db-orm": "^3.1.0",
|
|
46
|
-
"nodejs-base64-converter": "^1.0.5",
|
|
47
|
-
"razorpay": "^2.0.6",
|
|
48
|
-
"request": "^2.88.0",
|
|
49
|
-
"sqlite3": "^5.1.7",
|
|
50
|
-
"util": "^0.11.1"
|
|
51
|
-
},
|
|
52
|
-
"devDependencies": {
|
|
53
|
-
"@types/express": "^5.0.6",
|
|
54
|
-
"@types/express-handlebars": "^5.3.1",
|
|
55
|
-
"@types/node": "^24.6.1",
|
|
56
|
-
"copyfiles": "^2.4.1",
|
|
57
|
-
"firebase-admin": "^13.6.1",
|
|
58
|
-
"npm-run-all": "^4.1.5",
|
|
59
|
-
"typescript": "^5.9.3"
|
|
60
|
-
},
|
|
61
|
-
"files": [
|
|
62
|
-
"dist",
|
|
63
|
-
"public",
|
|
64
|
-
"app/views",
|
|
65
|
-
"README.MD",
|
|
66
|
-
"LICENSE"
|
|
67
|
-
]
|
|
68
|
-
}
|