fix: checkout API accessible via domain
This commit is contained in:
parent
ea8d6c7e4d
commit
f7c064c64c
|
|
@ -31,7 +31,9 @@ onMounted(async () => {
|
||||||
document.getElementById('status').textContent = `Creating checkout session for ${price.name}...`
|
document.getElementById('status').textContent = `Creating checkout session for ${price.name}...`
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const resp = await fetch('/api/checkout', {
|
// Try domain URL first, fall back to direct IP
|
||||||
|
const apiUrl = 'https://git.fdsa.agency/api'
|
||||||
|
const resp = await fetch(apiUrl, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue