15 changed files with 162 additions and 46 deletions
-
6.project
-
77src/main/java/com/test/world/config/PaymentConfig.java
-
27src/main/java/com/test/world/controller/APIController.java
-
53src/main/java/com/test/world/controller/PaymentController.java
-
4src/main/java/com/test/world/service/PaymentGatewayService.java
-
19src/main/java/com/test/world/service/PaymentGatewayServiceImpl.java
-
5src/main/resources/paymentConfig.properties
-
6src/main/resources/templates/index.html
-
BINtarget/classes/com/test/world/config/PaymentConfig.class
-
BINtarget/classes/com/test/world/controller/APIController.class
-
BINtarget/classes/com/test/world/controller/PaymentController.class
-
BINtarget/classes/com/test/world/service/PaymentGatewayService.class
-
BINtarget/classes/com/test/world/service/PaymentGatewayServiceImpl.class
-
5target/classes/paymentConfig.properties
-
6target/classes/templates/index.html
@ -0,0 +1,77 @@ |
|||||
|
package com.test.world.config; |
||||
|
|
||||
|
import org.springframework.beans.factory.annotation.Value; |
||||
|
import org.springframework.context.annotation.Configuration; |
||||
|
import org.springframework.context.annotation.PropertySource; |
||||
|
|
||||
|
@Configuration |
||||
|
@PropertySource("classpath:paymentConfig.properties") |
||||
|
public class PaymentConfig { |
||||
|
|
||||
|
@Value("${payment.worldline.merchantId}") |
||||
|
private String merchantId; |
||||
|
|
||||
|
@Value("${payment.worldline.encryptionKey}") |
||||
|
private String encryptionKey; |
||||
|
|
||||
|
@Value("${payment.worldline.encryptionIV}") |
||||
|
private String encryptionIV; |
||||
|
|
||||
|
@Value("${payment.worldline.schemeCode}") |
||||
|
private String schemeCode; |
||||
|
|
||||
|
@Value("${payment.worldline.merchantName}") |
||||
|
private String merchantName; |
||||
|
|
||||
|
|
||||
|
public String getMerchantId() { |
||||
|
return merchantId; |
||||
|
} |
||||
|
|
||||
|
public void setMerchantId(String merchantId) { |
||||
|
this.merchantId = merchantId; |
||||
|
} |
||||
|
|
||||
|
public String getEncryptionKey() { |
||||
|
return encryptionKey; |
||||
|
} |
||||
|
public byte[] getEncryptionKeyByte() { |
||||
|
return encryptionKey.getBytes(); |
||||
|
} |
||||
|
|
||||
|
public void setEncryptionKey(String encryptionKey) { |
||||
|
this.encryptionKey = encryptionKey; |
||||
|
} |
||||
|
|
||||
|
public String getEncryptionIV() { |
||||
|
return encryptionIV; |
||||
|
} |
||||
|
|
||||
|
public byte[] getEncryptionIVByte() { |
||||
|
return encryptionIV.getBytes(); |
||||
|
} |
||||
|
|
||||
|
public void setEncryptionIV(String encryptionIV) { |
||||
|
this.encryptionIV = encryptionIV; |
||||
|
} |
||||
|
|
||||
|
public String getSchemeCode() { |
||||
|
return schemeCode; |
||||
|
} |
||||
|
|
||||
|
public void setSchemeCode(String schemeCode) { |
||||
|
this.schemeCode = schemeCode; |
||||
|
} |
||||
|
|
||||
|
public String getMerchantName() { |
||||
|
return merchantName; |
||||
|
} |
||||
|
|
||||
|
public void setMerchantName(String merchantName) { |
||||
|
this.merchantName = merchantName; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
} |
||||
@ -0,0 +1,5 @@ |
|||||
|
payment.worldline.merchantId=T955031 |
||||
|
payment.worldline.encryptionKey=1025180466GPADTD |
||||
|
payment.worldline.encryptionIV=3232693456UWOWHC |
||||
|
payment.worldline.schemeCode=FIRST |
||||
|
payment.worldline.merchantName=Greater Chennai Corporation |
||||
@ -0,0 +1,5 @@ |
|||||
|
payment.worldline.merchantId=T955031 |
||||
|
payment.worldline.encryptionKey=1025180466GPADTD |
||||
|
payment.worldline.encryptionIV=3232693456UWOWHC |
||||
|
payment.worldline.schemeCode=FIRST |
||||
|
payment.worldline.merchantName=Greater Chennai Corporation |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue