This commit is contained in:
LathanDevers
2026-07-16 09:05:24 +02:00
parent eb48f506cf
commit 151aca69de
3 changed files with 133 additions and 13 deletions
+9 -1
View File
@@ -235,4 +235,12 @@ export const getInvoicesHistory = (clientId) =>
// (Optionnel) FOSSBilling Native : Récupère les détails complets d'une facture
export const getInvoiceDetails = (invoiceHash) =>
apiCall(`${BASE_URL}/api/client/invoice/get`, 'POST', { hash: invoiceHash });
apiCall(`${BASE_URL}/api/client/invoice/get`, 'POST', { hash: invoiceHash });
// Annule un abonnement (Gère automatiquement la règle des 14 jours côté serveur)
export const cancelSubscription = (clientId, orderId) =>
apiCall(`${CUSTOM_API_BASE_URL}/custom_api/nexus_subscription.php`, 'POST', {
action: 'cancel_order',
client_id: clientId,
order_id: orderId
});