Skip to content

BuildManager-Nets/Netaxept-Sample-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# Get started:
**netaxept-soap-client:**
	This project builds the client used for communicating with Netaxept
	
**pia-merchant-demo:**
	This contains the root pom which builds the netaxept client and the pia-merchant-service.

**etc/secrets:**
	The secrets.properties contains credentials needed to connect to Netaxept. 

**src:**
	The sources for the demo merchant backend
	
**target:**
	precompiled ready to run jar file of the merchant demo backend
	
**root:**
	pom.xml	- pom for building the pia-merchant-service
	run.cmd - Sets up necessary environment variables end starts the service
	
# Installation
1) Edit credentials to the file etc/secrets/secrets.properties  
   Enter the test credentials as supplied by Netaxept **(Note: There are Unit tests which verifies the connection to Netaxept, thus these tests require correct credentials.)** or add "-DskipTests" to skip running tests  
   Enter the secret **jwtSecret** for generating the JSON Web Tokens(JWT) via https://jwt.io/ if using Netaxept Callback as the alternative to the pull nature of the Query call
   Configure the Callback URL in Netaxept admin portal  
   REST Callback API:
   ```
   Path: /2.0/status/{YOUR_JSON_WEB_TOKEN}  Method: POST
   ```

2) Build "pia-merchant-demo"  
The merchant backend service has a dependency to netaxept-soap-client. For this reason when building for the first time,
build the multimodule project so that the client is installed in the local maven repo.
 
```
mvn clean install -Pdevelopment -f pia-merchant-demo/pom.xml
```

3) Run the service
```
:/> run
```

4) Generate javadoc of "pia-merchant-demo" and docs will be located under 
```
:/pia-merchant-demo>mvn javadoc:javadoc

Releases

No releases published

Packages

No packages published

Languages