Update: 2026-05-09 17:36:15
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user