Added new api

This commit is contained in:
m.razaghi
2026-07-04 17:05:50 +03:30
parent f242b8936a
commit ce5ccc00a1
11 changed files with 1006 additions and 17 deletions

View File

@@ -72,14 +72,14 @@ class PayController extends Controller
'expired_at' => $expiredAt,
]);
return $this->success([], 'Payment Successful', 'Subscription successfully activated.');
return $this->success([], 'موفق', 'اشتراک با موفقیت فعال شد');
}
return $this->failed([], ['title' => 'Payment Failed', 'message' => 'Payment verification failed.']);
return $this->failed([], ['title' => 'پرداخت ناموفق', 'message' => 'پرداخت ناموفق']);
} catch (\Exception $e) {
Log::info('error in callback function', ['error' => $e->getMessage()]);
return $this->failed([], ['title' => 'Payment Failed', 'message' => 'Payment verification failed.']);
return $this->failed([], ['title' => 'پرداخت ناموفق', 'message' => 'پرداخت ناموفق']);
}
}