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
Build and Deploy (Gitea) / build-and-deploy (push) Successful in 45s
Details
This commit is contained in:
parent
280335305a
commit
6df27544a6
|
|
@ -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() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue