node-paytmpg 7.4.1 → 7.4.3
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.
|
@@ -198,7 +198,9 @@ class PaymentController {
|
|
|
198
198
|
}
|
|
199
199
|
utils_1.Utils.sanitizeRequest(req.body);
|
|
200
200
|
let gotAllParams = true;
|
|
201
|
-
let checkedFields = ['TXN_AMOUNT', 'PRODUCT_NAME',
|
|
201
|
+
let checkedFields = ['TXN_AMOUNT', 'PRODUCT_NAME',
|
|
202
|
+
// 'MOBILE_NO',
|
|
203
|
+
'NAME', 'EMAIL'];
|
|
202
204
|
if (req.body !== undefined) {
|
|
203
205
|
for (var i = 0; i < checkedFields.length; i++) {
|
|
204
206
|
if (req.body[checkedFields[i]] === undefined) {
|
|
@@ -749,7 +751,9 @@ class PaymentController {
|
|
|
749
751
|
const config = this.config;
|
|
750
752
|
const razorPayInstance = this.razorPayInstance;
|
|
751
753
|
// mandayory field
|
|
752
|
-
const requiredFields = ['NAME', 'EMAIL',
|
|
754
|
+
const requiredFields = ['NAME', 'EMAIL',
|
|
755
|
+
// 'MOBILE_NO',
|
|
756
|
+
'TXN_AMOUNT', 'PRODUCT_NAME'];
|
|
753
757
|
const checkedFields = [];
|
|
754
758
|
let gotAllParams = true;
|
|
755
759
|
requiredFields.forEach(field => {
|
|
@@ -845,7 +849,11 @@ class PaymentController {
|
|
|
845
849
|
product_name: 'pname',
|
|
846
850
|
order_id: 'orderId',
|
|
847
851
|
status: 'status',
|
|
848
|
-
mobile_no: 'phone'
|
|
852
|
+
mobile_no: 'phone',
|
|
853
|
+
CLIENT_ID: 'clientId',
|
|
854
|
+
clientId: 'clientId',
|
|
855
|
+
WEBHOOK_URL: 'webhookUrl',
|
|
856
|
+
webhookUrl: 'webhookUrl',
|
|
849
857
|
};
|
|
850
858
|
Object.keys(fieldMap).forEach((key) => {
|
|
851
859
|
if (params[key]) {
|
package/dist/package.json
CHANGED