Added new api
This commit is contained in:
@@ -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' => 'پرداخت ناموفق']);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user