From 24ba6d13f6d20a9b0dc32e5de91ab7dbbae87853 Mon Sep 17 00:00:00 2001 From: Vusumuzi Khoza Date: Fri, 29 May 2026 15:36:00 +0200 Subject: [PATCH] customer creation now pointing to velocity --- .../workflows/RegistrationWorkflow.java | 4 +- src/main/resources/application-lab.properties | 2 +- src/main/resources/application.properties | 4 +- .../resources/liquibase-diff-changeLog.xml | 69 +++++++++++++++++++ 4 files changed, 74 insertions(+), 5 deletions(-) create mode 100644 src/main/resources/liquibase-diff-changeLog.xml diff --git a/src/main/java/zw/qantra/tm/domain/services/processors/workflows/RegistrationWorkflow.java b/src/main/java/zw/qantra/tm/domain/services/processors/workflows/RegistrationWorkflow.java index 58e554d..7793574 100644 --- a/src/main/java/zw/qantra/tm/domain/services/processors/workflows/RegistrationWorkflow.java +++ b/src/main/java/zw/qantra/tm/domain/services/processors/workflows/RegistrationWorkflow.java @@ -150,8 +150,8 @@ public class RegistrationWorkflow extends WorkflowDefinition { public void resendOtp(StateExecution execution) { OtpRequest otpRequest = execution.getVariable("resend", OtpRequest.class); Otp otp = otpService.generateOtp(otpRequest.getUsername(), "REGISTRATION"); - String string = String.format("Your Peak verification code is: %s", otp.getOtp()); - emailService.sendSimpleMessage(otpRequest.getUsername(), "Peak verification code", string); + String string = String.format("Your Velocity Pay verification code is: %s", otp.getOtp()); + emailService.sendSimpleMessage(otpRequest.getUsername(), "Velocity Pay verification code", string); log.info("otp generated successfully: {}", otp.getOtp()); } diff --git a/src/main/resources/application-lab.properties b/src/main/resources/application-lab.properties index a79b94b..7e79527 100644 --- a/src/main/resources/application-lab.properties +++ b/src/main/resources/application-lab.properties @@ -7,7 +7,7 @@ server.port=6950 server.servlet.context-path=/api -spring.jpa.hibernate.ddl-auto=update +spring.jpa.hibernate.ddl-auto=validate spring.datasource.driver-class-name=org.postgresql.Driver spring.datasource.url=jdbc:postgresql://localhost:5432/qpay?useLegacyDatetimeCode=false diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 249f9cc..d745375 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -7,7 +7,7 @@ server.port=6950 server.servlet.context-path=/api -spring.jpa.hibernate.ddl-auto=update +spring.jpa.hibernate.ddl-auto=validate spring.datasource.driver-class-name=org.postgresql.Driver spring.datasource.url=jdbc:postgresql://62.171.179.108:5432/qpay?useLegacyDatetimeCode=false @@ -67,6 +67,6 @@ hot.password=Stikbanch@50 hot.token.expiry.minutes=25 velocity.api.base-url=https://api.velocityafrica.net -velocity.api.api-key=z5WdSlItIhYL6nd7rxzf-jFdKN3jJyL1LubhDFBvXmc +velocity.api.api-key=cHE08ADmiATtf8VYgA59-wKVKVKj2WusKDAaaRLDsG8 velocity.api.cancel-url=https://pay.velocityafrica/poll velocity.api.success-url=https://pay.velocityafrica/poll \ No newline at end of file diff --git a/src/main/resources/liquibase-diff-changeLog.xml b/src/main/resources/liquibase-diff-changeLog.xml new file mode 100644 index 0000000..4f32cd5 --- /dev/null +++ b/src/main/resources/liquibase-diff-changeLog.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +