quickpos 1.0.922 → 1.0.924

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.
Files changed (2) hide show
  1. package/lib/paytr.js +2 -2
  2. package/package.json +1 -1
package/lib/paytr.js CHANGED
@@ -267,7 +267,7 @@ class PayTR {
267
267
  }
268
268
 
269
269
  handleCallback(callbackData) {
270
- const { merchant_oid, status, total_amount, hash, type = 'iframe', callback_id=false } = callbackData;
270
+ let { merchant_oid, status, total_amount, hash, type = 'iframe', callback_id=false } = callbackData;
271
271
 
272
272
  if (!hash) throw new Error('Hash param missing');
273
273
 
@@ -295,7 +295,7 @@ class PayTR {
295
295
  if (status === 'success') {
296
296
  return {
297
297
  status: 'success',
298
- orderId: callbackData.callback_id || merchant_oid,
298
+ orderId: callback_id || merchant_oid,
299
299
  merchant_oid: merchant_oid,
300
300
  amount: parseFloat(total_amount) / 100,
301
301
  currency: callbackData.currency,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quickpos",
3
- "version": "1.0.922",
3
+ "version": "1.0.924",
4
4
  "main": "app.js",
5
5
  "scripts": {
6
6
  "test": "node test.js"