Update: 2026-05-09 17:36:15

This commit is contained in:
Hamza-Ayed
2026-05-09 17:36:15 +03:00
parent b9ba9c5030
commit d7c7920b4a
2 changed files with 84 additions and 2 deletions

View File

@@ -102,7 +102,7 @@ class SubscriptionController extends GetxController {
Future<bool> cancelPaymentRequest(String paymentId) async {
try {
isLoading.value = true;
final res = await DioClient().client.post('payments/cancel', data: {'payment_id': paymentId});
final res = await DioClient().client.post('payments/delete', data: {'payment_id': paymentId});
if (res.data['success'] == true) {
AppSnackbar.showSuccess('تم الإلغاء', 'تم إلغاء طلب الدفع بنجاح');
await loadAll();