Browse Source

building id dynamically and live issue fixed (wrong build & category) booking by user & fixed the changes officerdashboard page for caretaker2

master
AJITH 8 months ago
parent
commit
dbccf7649e
  1. 17
      src/main/java/com/gcc/coworkspace/configuration/DataSourceConfig.java
  2. 9
      src/main/java/com/gcc/coworkspace/constants/AppConstants.java
  3. 5
      src/main/resources/templates/user/razor-pay.html

17
src/main/java/com/gcc/coworkspace/configuration/DataSourceConfig.java

@ -29,23 +29,21 @@ public class DataSourceConfig {
// private static String dbpassword = "Bonton#2K24"; // private static String dbpassword = "Bonton#2K24";
// AWS // AWS
private static String host = "gcc-facial-db-instance-1.cf48eqcciziq.ap-south-1.rds.amazonaws.com:3306";
private static String dbpassword = "gcc-facial-password";
// private static String host =
// "gcc-facial-db-instance-1.cf48eqcciziq.ap-south-1.rds.amazonaws.com:3306";
// private static String dbpassword = "gcc-facial-password";
//private static String host ="localhost:3306";
//private static String dbpassword = "root";
private static String host = "localhost:3306";
private static String dbpassword = "root";
// private static String dbpassword = ""; // private static String dbpassword = "";
// Sampath Local // Sampath Local
// private static String host ="localhost"; // private static String host ="localhost";
// private static String dbpassword = "12345678"; // private static String dbpassword = "12345678";
@Configuration @Configuration
@EnableTransactionManagement @EnableTransactionManagement
@EnableJpaRepositories(
entityManagerFactoryRef = "appEntityManagerFactory",
transactionManagerRef = "appTransactionManager")
@EnableJpaRepositories(entityManagerFactoryRef = "appEntityManagerFactory", transactionManagerRef = "appTransactionManager")
// basePackages = {"in.gov.chennaicorporation"}) // basePackages = {"in.gov.chennaicorporation"})
public static class MysqlAppDataSourceConfig { public static class MysqlAppDataSourceConfig {
@ -77,7 +75,8 @@ public class DataSourceConfig {
@Primary @Primary
@Bean(name = "appTransactionManager") @Bean(name = "appTransactionManager")
public PlatformTransactionManager transactionManager(@Qualifier("appEntityManagerFactory") jakarta.persistence.EntityManagerFactory entityManagerFactory) {
public PlatformTransactionManager transactionManager(
@Qualifier("appEntityManagerFactory") jakarta.persistence.EntityManagerFactory entityManagerFactory) {
return new JpaTransactionManager(entityManagerFactory); return new JpaTransactionManager(entityManagerFactory);
} }
} }

9
src/main/java/com/gcc/coworkspace/constants/AppConstants.java

@ -1,11 +1,10 @@
package com.gcc.coworkspace.constants; package com.gcc.coworkspace.constants;
public final class AppConstants { public final class AppConstants {
public static String key_id="rzp_live_ySI5Ns54Y7qOcJ";
public static String key_secret="Nwf1TjhUtaskof8vePkRR8Sb";
// public static String key_id="rzp_live_ySI5Ns54Y7qOcJ";
// public static String key_secret="Nwf1TjhUtaskof8vePkRR8Sb";
// uncomment for testing payment // uncomment for testing payment
//public static String key_id="rzp_test_tDkHFEqWXmuEi8";
//public static String key_secret="cBQUjMcKZ4J6vmOKSyNZ92py";
public static String key_id = "rzp_test_tDkHFEqWXmuEi8";
public static String key_secret = "cBQUjMcKZ4J6vmOKSyNZ92py";
} }

5
src/main/resources/templates/user/razor-pay.html

@ -18,8 +18,8 @@
console.log(response); console.log(response);
if (response.status == "created") { if (response.status == "created") {
let options = { let options = {
"key": "[[${keyId}]]",
//"key" : "rzp_test_tDkHFEqWXmuEi8", // Enter the Key ID generated from the Dashboard
// "key": "[[${keyId}]]",
"key": "rzp_test_tDkHFEqWXmuEi8", // Enter the Key ID generated from the Dashboard
"amount": response.amount, // Amount is in currency subunits. Default currency is INR. Hence, 50000 refers to 50000 paise "amount": response.amount, // Amount is in currency subunits. Default currency is INR. Hence, 50000 refers to 50000 paise
"currency": "INR", "currency": "INR",
"name": "Greater Chennai Corporation", "name": "Greater Chennai Corporation",
@ -92,4 +92,5 @@
}; };
</script> </script>
</header> </header>
</html> </html>
Loading…
Cancel
Save