Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed flagging of transaction attribute after voucher payment #53

Merged
merged 2 commits into from
Oct 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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