diff --git a/app/Config/Routes.php b/app/Config/Routes.php
index 987683eb..d94e8852 100755
--- a/app/Config/Routes.php
+++ b/app/Config/Routes.php
@@ -198,7 +198,8 @@ $routes->match(['get','post'],'/pay','Payment::pay/');
$routes->match(['get','post'],'/tresponse','Payment::tresponse/');
$routes->match(['get','post'],'/response','Payment::response/');
$routes->get('/payment_failure', 'Payment::payment_failure');
-$routes->get('/payment_success','Payment::payment_success');
+$routes->get('/payment_process','Payment::payment_process');
+$routes->get('payment_success','Payment::payment_success');
$routes->match(['get','post'],'/subscription_renewal/(:any)','Payment::index/$1');
// $routes->group("api", function ($routes) {
// // $routes->post("create_products/", "ApiIntegration::save_book_details");
diff --git a/app/Controllers/Payment.php b/app/Controllers/Payment.php
index 83eb7c06..6e54973a 100644
--- a/app/Controllers/Payment.php
+++ b/app/Controllers/Payment.php
@@ -127,7 +127,7 @@ public function tresponse() {
$queryString = http_build_query($paramList);
echo "Transaction status is success
";
- return redirect()->to(base_url('/payment_success?' . $queryString));
+ return redirect()->to(base_url('/payment_process?' . $queryString));
} else {
echo "Processing ...
";
$queryString = http_build_query($paramList);
@@ -159,7 +159,8 @@ public function payment_failure(){
return view('/payment_failure');
}
-public function payment_success() {
+public function payment_process() {
+ echo "Do not hit refresh or go back. Confirming your Order";
helper('session');
helper('financial_year_helper');
$subModel = new SubscriptionModel();
@@ -304,7 +305,7 @@ public function payment_success() {
log_message('info','sent data' .json_encode($data));
- return view('/payment_success');
+ return redirect()->to(base_url('/payment_success'));
}
public function generateSerialNumber($filtered_data, $financial_year) {
@@ -318,8 +319,8 @@ public function generateSerialNumber($filtered_data, $financial_year) {
$next_id_numeric++;
return ['serial_number' => $serial_number, 'next_id' => $next_id_numeric];
}
-public function design(){
- return view('payment_success_copy');
+public function payment_success(){
+ return view('payment_success');
}
}
diff --git a/app/Views/payment_success.php b/app/Views/payment_success.php
index 1ce49bfe..443681f0 100644
--- a/app/Views/payment_success.php
+++ b/app/Views/payment_success.php
@@ -95,4 +95,39 @@