fix: correct Asaas Sandbox API URL from /v3 to /api/v3 to prevent HTML login page responses
Build and Deploy (Gitea) / build-and-deploy (push) Successful in 45s Details

This commit is contained in:
Sidney Gomes 2026-07-21 19:25:11 -03:00
parent 280335305a
commit 6df27544a6
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ export class AsaasService {
private static getApiUrl(): string { private static getApiUrl(): string {
const db = loadDb(); const db = loadDb();
const env = db.settings?.asaasEnvironment || 'sandbox'; const env = db.settings?.asaasEnvironment || 'sandbox';
return env === 'production' ? 'https://api.asaas.com/v3' : 'https://sandbox.asaas.com/v3'; return env === 'production' ? 'https://api.asaas.com/v3' : 'https://sandbox.asaas.com/api/v3';
} }
private static getHeaders() { private static getHeaders() {