Skip to content

Commit b9bc960

Browse files
committed
Intermediate changes.
1 parent c718c52 commit b9bc960

File tree

3 files changed

+102
-2
lines changed

3 files changed

+102
-2
lines changed

components/TabbedCheckout.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,8 +601,8 @@
601601
import CloseButton from "@/components/CloseButton"
602602
import DisplayField from "@/components/DisplayField"
603603
import MetamaskButton from "@/components/MetamaskButton"
604-
import WalletConnectButton from "@/components/WalletConnectButton"
605604
import UIExtensionSlot from "@/components/UIExtensionSlot"
605+
import WalletConnectButton from "@/components/WalletConnectButton"
606606
export default {
607607
components: {
608608
CloseButton,

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,6 @@
5151
"vue-server-renderer": "<2.7",
5252
"vue-template-compiler": "<2.7",
5353
"vuetify-loader": "1.7.3"
54-
}
54+
},
55+
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
5556
}

pages/i/_id.vue

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,102 @@
5555
{{ texts[status].text }}
5656
</div>
5757
</div>
58+
<v-row class="justify-center">
59+
{{ invoice }}
60+
<v-col>
61+
<v-img
62+
class="mt-8"
63+
max-height="80"
64+
max-width="80"
65+
contain
66+
:src="`${STATIC_PATH}/icon.svg`"
67+
/>
68+
<v-card-title class="subheading font-weight-bold">
69+
Bitcart AI
70+
</v-card-title>
71+
72+
<v-divider></v-divider>
73+
74+
<v-list dense>
75+
<v-list-item>
76+
<v-list-item-content class="grey--text text--darken"
77+
><strong>Invoice ID</strong></v-list-item-content
78+
>
79+
<v-list-item-content class="align-end">
80+
{{ invoice.id }}
81+
</v-list-item-content>
82+
</v-list-item>
83+
84+
<v-list-item>
85+
<v-list-item-content class="grey--text text--darken"
86+
><strong>Order ID</strong></v-list-item-content
87+
>
88+
<v-list-item-content class="align-end">
89+
{{ invoice.order_id }}
90+
</v-list-item-content>
91+
</v-list-item>
92+
93+
<v-list-item>
94+
<v-list-item-content class="grey--text text--darken"
95+
><strong>Store ID</strong></v-list-item-content
96+
>
97+
<v-list-item-content class="align-end">
98+
{{ invoice.store_id }}
99+
</v-list-item-content>
100+
</v-list-item>
101+
102+
<v-list-item>
103+
<v-list-item-content class="grey--text text--darken"
104+
><strong>Total Price</strong></v-list-item-content
105+
>
106+
<v-list-item-content class="align-end">
107+
{{ invoice.order_id }}
108+
</v-list-item-content>
109+
</v-list-item>
110+
<v-list-item>
111+
<v-list-item-content class="grey--text text--darken"
112+
><strong>Sent Amount</strong></v-list-item-content
113+
>
114+
<v-list-item-content class="align-end">
115+
{{ invoice.sent_amount + " " + invoice.paid_currency }}
116+
</v-list-item-content>
117+
</v-list-item>
118+
<v-list-item>
119+
<v-list-item-content class="grey--text text--darken"
120+
><strong>Total Fiat</strong></v-list-item-content
121+
>
122+
<v-list-item-content class="align-end">
123+
{{ invoice.price + " " + invoice.currency }}
124+
</v-list-item-content>
125+
</v-list-item>
126+
<v-list-item>
127+
<v-list-item-content class="grey--text text--darken"
128+
><strong>Exchange Rate</strong></v-list-item-content
129+
>
130+
<v-list-item-content class="align-end">
131+
{{ calculateTotalPrice() }}
132+
</v-list-item-content>
133+
</v-list-item>
134+
<v-list-item>
135+
<v-list-item-content class="grey--text text--darken"
136+
><strong>Amount Due</strong></v-list-item-content
137+
>
138+
<v-list-item-content class="align-end">
139+
{{ invoice.sent_amount }}
140+
</v-list-item-content>
141+
</v-list-item>
142+
143+
<v-list-item>
144+
<v-list-item-content class="grey--text text--darken"
145+
><strong>Date</strong></v-list-item-content
146+
>
147+
<v-list-item-content class="align-end">
148+
<!-- {{ invoice.paid_date.substring(0, 19).replace("T", " ") }} -->
149+
</v-list-item-content>
150+
</v-list-item>
151+
</v-list>
152+
</v-col>
153+
</v-row>
58154
</v-card-text>
59155
</div>
60156
</v-card>
@@ -211,6 +307,9 @@ export default {
211307
? baseURL.replace(/\/+$/, "") + "/" + relativeURL.replace(/^\/+/, "")
212308
: baseURL
213309
},
310+
calculateTotalPrice() {
311+
return this.invoice.payments
312+
},
214313
},
215314
}
216315
</script>

0 commit comments

Comments
 (0)