us1
This commit is contained in:
+9
-1
@@ -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
|
||||
});
|
||||
Reference in New Issue
Block a user