Skip to content

Commit

Permalink
Merge pull request #53 from paytaca/improvements/receive-page
Browse files Browse the repository at this point in the history
Removed flagging of transaction attribute after voucher payment
  • Loading branch information
joemarct authored Oct 22, 2024
2 parents 80d4531 + a430da3 commit 9f0024f
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/pages/ReceivePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -561,23 +561,6 @@ export default defineComponent({
displayReceivedTransaction(transaction)
}
function updateClaimTxnAttr (txid) {
const posId = walletStore.posId
const key = `voucher_claim_${posId}`
const payload = {
wallet_hash: walletStore.merchantInfo?.walletHash,
value: "Voucher Claim",
remove: false,
txid,
key
}
const watchtowerTxnAttrUrl = `${process.env.WATCHTOWER_API}/transactions/attributes/`
axios.post(watchtowerTxnAttrUrl, payload)
.then(response => console.log('Added transaction attribute as voucher claim: ', response))
.catch(err => console.log('Error on adding transaction attribute as voucher claim: ', err))
}
function processLiveUpdate (data) {
const updateType = data?.update_type
let message = null
Expand All @@ -598,10 +581,6 @@ export default defineComponent({
qrScanned.value = false
refreshQrCountdown()
}
else if (updateType === 'voucher_claimed') {
if (!data?.txid || !data?.category) return
updateClaimTxnAttr(data.txid)
}
if (message) {
$q.notify({
Expand Down

0 comments on commit 9f0024f

Please sign in to comment.