WIP: fix: use salix for myTpvTransaction_end #127

Closed
ldragan wants to merge 2 commits from ldragan/hedera-web:taro/tpv into beta
1 changed files with 8 additions and 4 deletions
Showing only changes of commit 1c3684c8c7 - Show all commits

View File

@ -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}]`,

Si order o status no son numéricos, esto debería incluir comillas.

Si `order` o `status` no son numéricos, esto debería incluir comillas.

creo que con JSON.stringify se debería resolver.
Al menos así lo hemos hecho en Lilium

creo que con JSON.stringify se debería resolver. Al menos así lo hemos hecho en Lilium
}).toString());
if (status === 'ko') {
const retry = confirm('retryPayQuestion');