This commit is contained in:
Emily
2024-06-04 15:36:57 +02:00
parent 0427827858
commit c151d558f4
6 changed files with 101 additions and 25 deletions

View File

@@ -76,11 +76,13 @@ function onHideClicked() {
const activeProject = useActiveProject();
async function payment() {
const res = await $fetch(`/api/pay/${activeProject.value?._id.toString()}/create`, {
...signHeaders({ 'content-type': 'application/json' }),
method: 'POST',
body: JSON.stringify({ planId: 1 })
})
// const res = await $fetch(`/api/pay/${activeProject.value?._id.toString()}/create`, {
// ...signHeaders({ 'content-type': 'application/json' }),
// method: 'POST',
// body: JSON.stringify({ planId: 1 })
// })
// console.log(res);
const res = await $fetch(`/api/pay/${activeProject.value?._id.toString()}/invoices`, signHeaders())
console.log(res);
}