orderiom-api-package 0.3.38 → 0.3.40
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/src/modules/order.js +6 -2
package/package.json
CHANGED
package/src/modules/order.js
CHANGED
|
@@ -385,7 +385,11 @@ const actions = {
|
|
|
385
385
|
.post("api/order/create-order", {
|
|
386
386
|
...basketId,
|
|
387
387
|
...restaurantID,
|
|
388
|
-
paymentType: data.paymentType
|
|
388
|
+
paymentType: data.paymentType,
|
|
389
|
+
...(data.paymentType === 'payFix' && {
|
|
390
|
+
qrCode: data.payfix_qrcode,
|
|
391
|
+
pin: data.payfix_pin
|
|
392
|
+
}),
|
|
389
393
|
})
|
|
390
394
|
.then((res) => {
|
|
391
395
|
// localStorage.setItem("orderId", res.data.data.order.id);
|
|
@@ -505,7 +509,7 @@ const actions = {
|
|
|
505
509
|
},
|
|
506
510
|
updatePaymentStatus({ dispatch, commit }, data) {
|
|
507
511
|
return $http
|
|
508
|
-
.get(`api/payment/update`, { params: { paymentId: data.paymentId } })
|
|
512
|
+
.get(`api/payment/update`, { params: { paymentId: data.paymentId ,status:data.status} })
|
|
509
513
|
.then((res) => {
|
|
510
514
|
const status = res.data.data.status;
|
|
511
515
|
commit('setpaymentStatus', status)
|