node-paytmpg 8.0.17 → 8.0.18

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.
@@ -130,8 +130,8 @@ async function handleSubscriptionWebhook(req, res, db, baseConfig, tableNames, m
130
130
  time: Date.now(),
131
131
  status: 'TXN_SUCCESS',
132
132
  name: (user === null || user === void 0 ? void 0 : user.name) || '',
133
- email: paymentEntity.email || (user === null || user === void 0 ? void 0 : user.email) || '',
134
- phone: paymentEntity.contact || (user === null || user === void 0 ? void 0 : user.phone) || '',
133
+ email: (user === null || user === void 0 ? void 0 : user.email) || paymentEntity.email || '',
134
+ phone: (user === null || user === void 0 ? void 0 : user.phone) || paymentEntity.contact || '',
135
135
  amount: paymentEntity.amount / 100,
136
136
  pname: (plan === null || plan === void 0 ? void 0 : plan.name) || 'Subscription Charge',
137
137
  extra: JSON.stringify(paymentEntity),
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-paytmpg",
3
- "version": "8.0.17",
3
+ "version": "8.0.18",
4
4
  "description": "Payment Gateway Integration using NodeJS",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-paytmpg",
3
- "version": "8.0.17",
3
+ "version": "8.0.18",
4
4
  "description": "Payment Gateway Integration using NodeJS",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",