File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed
Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -103,9 +103,14 @@ const paymentApi = useApiPayment()
103103async 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
Original file line number Diff line number Diff 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 ({
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments