quickpos 1.0.1 → 1.0.2

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 -1
  2. package/package.json +1 -1
package/lib/paytr.js CHANGED
@@ -100,7 +100,8 @@ class PayTR {
100
100
  if (callbackData.status === 'success') {
101
101
  return {
102
102
  status: 'success',
103
- orderId: callbackData.merchant_oid,
103
+ orderId: callbackData.callback_id,
104
+ merchant_oid: callbackData.merchant_oid,
104
105
  amount: parseFloat(callbackData.total_amount) / 100,
105
106
  currency: callbackData.currency,
106
107
  paymentType: callbackData.payment_type
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quickpos",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "main": "app.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"