parent
20293bd028
commit
1c3684c8c7
src/stores
|
@ -1,5 +1,8 @@
|
|||
import { defineStore } from 'pinia';
|
||||
import { jApi } from 'boot/axios';
|
||||
import { inject } from 'vue';
|
||||
|
||||
const api = inject('api');
|
||||
|
||||
export const tpvStore = defineStore('tpv', {
|
||||
actions: {
|
||||
|
@ -8,10 +11,11 @@ export const tpvStore = defineStore('tpv', {
|
|||
const status = route.query.tpvStatus;
|
||||
if (!(order && status)) return null;
|
||||
|
||||
await jApi.execQuery('CALL myTpvTransaction_end(#order, #status)', {
|
||||
order,
|
||||
status
|
||||
});
|
||||
|
||||
await api.post('applications/myTpvTransaction_end/execute-proc', new URLSearchParams({
|
||||
schema: 'hedera',
|
||||
params: `[${order}, ${status}]`,
|
||||
}).toString());
|
||||
|
||||
if (status === 'ko') {
|
||||
const retry = confirm('retryPayQuestion');
|
||||
|
|
Loading…
Reference in New Issue