customer creation now pointing to velocity
This commit is contained in:
@@ -150,8 +150,8 @@ public class RegistrationWorkflow extends WorkflowDefinition {
|
|||||||
public void resendOtp(StateExecution execution) {
|
public void resendOtp(StateExecution execution) {
|
||||||
OtpRequest otpRequest = execution.getVariable("resend", OtpRequest.class);
|
OtpRequest otpRequest = execution.getVariable("resend", OtpRequest.class);
|
||||||
Otp otp = otpService.generateOtp(otpRequest.getUsername(), "REGISTRATION");
|
Otp otp = otpService.generateOtp(otpRequest.getUsername(), "REGISTRATION");
|
||||||
String string = String.format("Your Peak verification code is: %s", otp.getOtp());
|
String string = String.format("Your Velocity Pay verification code is: %s", otp.getOtp());
|
||||||
emailService.sendSimpleMessage(otpRequest.getUsername(), "Peak verification code", string);
|
emailService.sendSimpleMessage(otpRequest.getUsername(), "Velocity Pay verification code", string);
|
||||||
|
|
||||||
log.info("otp generated successfully: {}", otp.getOtp());
|
log.info("otp generated successfully: {}", otp.getOtp());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ server.port=6950
|
|||||||
|
|
||||||
server.servlet.context-path=/api
|
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.driver-class-name=org.postgresql.Driver
|
||||||
|
|
||||||
spring.datasource.url=jdbc:postgresql://localhost:5432/qpay?useLegacyDatetimeCode=false
|
spring.datasource.url=jdbc:postgresql://localhost:5432/qpay?useLegacyDatetimeCode=false
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ server.port=6950
|
|||||||
|
|
||||||
server.servlet.context-path=/api
|
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.driver-class-name=org.postgresql.Driver
|
||||||
|
|
||||||
spring.datasource.url=jdbc:postgresql://62.171.179.108:5432/qpay?useLegacyDatetimeCode=false
|
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
|
hot.token.expiry.minutes=25
|
||||||
|
|
||||||
velocity.api.base-url=https://api.velocityafrica.net
|
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.cancel-url=https://pay.velocityafrica/poll
|
||||||
velocity.api.success-url=https://pay.velocityafrica/poll
|
velocity.api.success-url=https://pay.velocityafrica/poll
|
||||||
69
src/main/resources/liquibase-diff-changeLog.xml
Normal file
69
src/main/resources/liquibase-diff-changeLog.xml
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
|
||||||
|
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:pro="http://www.liquibase.org/xml/ns/pro" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-latest.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
|
||||||
|
<changeSet author="khoza (generated)" id="1780061546055-17">
|
||||||
|
<addColumn tableName="transaction">
|
||||||
|
<column name="order_id" type="varchar(255)"/>
|
||||||
|
</addColumn>
|
||||||
|
</changeSet>
|
||||||
|
<changeSet author="khoza (generated)" id="1780061546055-18">
|
||||||
|
<addColumn tableName="transaction">
|
||||||
|
<column name="order_trace" type="varchar(255)"/>
|
||||||
|
</addColumn>
|
||||||
|
</changeSet>
|
||||||
|
<changeSet author="khoza (generated)" id="1780061546055-19">
|
||||||
|
<addColumn tableName="transaction">
|
||||||
|
<column name="order_transaction_trace" type="varchar(255)"/>
|
||||||
|
</addColumn>
|
||||||
|
</changeSet>
|
||||||
|
<changeSet author="khoza (generated)" id="1780061546055-20">
|
||||||
|
<dropColumn columnName="version" tableName="transaction"/>
|
||||||
|
</changeSet>
|
||||||
|
<changeSet author="khoza (generated)" id="1780061546055-1">
|
||||||
|
<addDefaultValue columnDataType="boolean" columnName="deleted" defaultValueBoolean="false" tableName="additional_data"/>
|
||||||
|
</changeSet>
|
||||||
|
<changeSet author="khoza (generated)" id="1780061546055-2">
|
||||||
|
<addDefaultValue columnDataType="boolean" columnName="deleted" defaultValueBoolean="false" tableName="category"/>
|
||||||
|
</changeSet>
|
||||||
|
<changeSet author="khoza (generated)" id="1780061546055-3">
|
||||||
|
<addDefaultValue columnDataType="boolean" columnName="deleted" defaultValueBoolean="false" tableName="charge"/>
|
||||||
|
</changeSet>
|
||||||
|
<changeSet author="khoza (generated)" id="1780061546055-4">
|
||||||
|
<addDefaultValue columnDataType="boolean" columnName="deleted" defaultValueBoolean="false" tableName="charge_condition"/>
|
||||||
|
</changeSet>
|
||||||
|
<changeSet author="khoza (generated)" id="1780061546055-5">
|
||||||
|
<addDefaultValue columnDataType="boolean" columnName="deleted" defaultValueBoolean="false" tableName="currency"/>
|
||||||
|
</changeSet>
|
||||||
|
<changeSet author="khoza (generated)" id="1780061546055-6">
|
||||||
|
<addDefaultValue columnDataType="boolean" columnName="deleted" defaultValueBoolean="false" tableName="integration_processor"/>
|
||||||
|
</changeSet>
|
||||||
|
<changeSet author="khoza (generated)" id="1780061546055-7">
|
||||||
|
<addDefaultValue columnDataType="boolean" columnName="deleted" defaultValueBoolean="false" tableName="otp"/>
|
||||||
|
</changeSet>
|
||||||
|
<changeSet author="khoza (generated)" id="1780061546055-8">
|
||||||
|
<addDefaultValue columnDataType="boolean" columnName="deleted" defaultValueBoolean="false" tableName="payment_processor"/>
|
||||||
|
</changeSet>
|
||||||
|
<changeSet author="khoza (generated)" id="1780061546055-9">
|
||||||
|
<addDefaultValue columnDataType="boolean" columnName="deleted" defaultValueBoolean="false" tableName="provider"/>
|
||||||
|
</changeSet>
|
||||||
|
<changeSet author="khoza (generated)" id="1780061546055-10">
|
||||||
|
<addDefaultValue columnDataType="boolean" columnName="deleted" defaultValueBoolean="false" tableName="recipient"/>
|
||||||
|
</changeSet>
|
||||||
|
<changeSet author="khoza (generated)" id="1780061546055-11">
|
||||||
|
<addDefaultValue columnDataType="boolean" columnName="deleted" defaultValueBoolean="false" tableName="setting"/>
|
||||||
|
</changeSet>
|
||||||
|
<changeSet author="khoza (generated)" id="1780061546055-12">
|
||||||
|
<addDefaultValue columnDataType="boolean" columnName="deleted" defaultValueBoolean="false" tableName="transaction"/>
|
||||||
|
</changeSet>
|
||||||
|
<changeSet author="khoza (generated)" id="1780061546055-13">
|
||||||
|
<addDefaultValue columnDataType="boolean" columnName="deleted" defaultValueBoolean="false" tableName="transaction_event"/>
|
||||||
|
</changeSet>
|
||||||
|
<changeSet author="khoza (generated)" id="1780061546055-14">
|
||||||
|
<addDefaultValue columnDataType="boolean" columnName="deleted" defaultValueBoolean="false" tableName="users"/>
|
||||||
|
</changeSet>
|
||||||
|
<changeSet author="khoza (generated)" id="1780061546055-15">
|
||||||
|
<dropUniqueConstraint constraintName="UC_USERSUSERNAME_COL" tableName="users"/>
|
||||||
|
</changeSet>
|
||||||
|
<changeSet author="khoza (generated)" id="1780061546055-16">
|
||||||
|
<addUniqueConstraint columnNames="username" constraintName="UC_USERSUSERNAME_COL" tableName="users"/>
|
||||||
|
</changeSet>
|
||||||
|
</databaseChangeLog>
|
||||||
Reference in New Issue
Block a user