Skip to content

Commit

Permalink
New payment statuses (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrNaif2018 authored Jan 21, 2021
1 parent 89e3984 commit 20f054e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
22 changes: 13 additions & 9 deletions components/CheckoutModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,23 +76,27 @@ export default {
invoice: {},
tabitem: {},
loading: true,
status: "Pending",
status: "pending",
texts: {
expired: {
icon: "mdi-close",
text: "This invoice has expired",
},
complete: {
invalid: {
icon: "mdi-close",
text: "This invoice has been marked as invalid",
},
paid: {
icon: "mdi-check",
text: "This invoice has been paid",
},
Failed: {
icon: "mdi-close",
text: "This invoice has failed",
confirmed: {
icon: "mdi-check",
text: "This invoice has been paid",
},
Invalid: {
icon: "mdi-close",
text: "This invoice is invalid",
complete: {
icon: "mdi-check",
text: "This invoice has been paid",
},
"": {
icon: "mdi-close",
Expand Down Expand Up @@ -157,7 +161,7 @@ export default {
websocket.onmessage = function (event) {
const status = JSON.parse(event.data).status
ref.status = status
if (status === "complete") {
if (["paid", "confirmed", "complete"].includes(status)) {
ref.setSuccess(true)
ref.clearContents()
ref.clearCount()
Expand Down
2 changes: 1 addition & 1 deletion version.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const VERSION = "0.1.0.2"
const VERSION = "0.2.0.0"

export default VERSION

0 comments on commit 20f054e

Please sign in to comment.