Skip to content

Commit bdefed6

Browse files
committed
fix: missing sepay logic in popup
1 parent 8587ba9 commit bdefed6

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

app/pages/app.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,14 @@ const paymentApi = useApiPayment()
103103
async function handleCheckout() {
104104
const productIdentifier = `credit:${selectedPriceId.value}`
105105
106-
const { data: checkoutData } = await paymentApi.checkout('payos', productIdentifier)
106+
const { data: checkoutData } = await paymentApi.checkout('sepay', productIdentifier)
107107
108-
window.open(checkoutData.paymentUrl, '_blank')
108+
navigateTo({
109+
path: '/checkout',
110+
query: {
111+
qr: checkoutData.paymentUrl,
112+
},
113+
})
109114
}
110115
</script>
111116

app/pages/pricing.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,6 @@ async function handleCheckout() {
7373
await navigateTo({ path: '/sign-in' }, { external: true })
7474
}
7575
76-
// const { data: checkoutData } = await paymentApi.checkout('payos', productIdentifier)
77-
78-
// window.open(checkoutData.paymentUrl, '_blank')
7976
const { data: checkoutData } = await paymentApi.checkout('sepay', productIdentifier)
8077
8178
navigateTo({

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@thecodeorigin/nuxt",
33
"type": "module",
4-
"version": "2.6.1",
4+
"version": "2.6.2",
55
"publishConfig": {
66
"registry": "https://registry.npmjs.org",
77
"access": "public"

0 commit comments

Comments
 (0)