todorovicg / sep-acquirer-bank

SEP 2015 - Merchant backend application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SEP 2015 - Acquirer Bank

Acquirer bank REST api using Spring Boot

##Requirements

  • JDK 8

  • Apache Maven

    Download the latest Apache Maven from http://maven.apache.org, and uncompress it into your local system.

    Optionally, you can set M2_HOME environment varible, and also do not forget to append <Maven Installation dir>/bin your PATH environment variable

Run this project

  1. Clone the codes.
<pre>
git clone https://github.com/LaudaDev/sep-acquirer-bank
</pre>
  1. Enter the root folder, run mvn spring-boot:run to start up an embedded tomcat to serve this application or you can build the JAR file with mvn clean package and run the JAR by typing:
<pre>
java -jar target/bank-acquirer-rest-0.1.0.jar
</pre>

API URLs

  • baseUrl: https://host:port/api/acquirer/bank
  • Supported HTTP methods:
    • POST baseUrl/auth
      • Request body format example:
    	    {
      	    "cardInfo": {
      	       "pan": "1111111111111111",
      	       "securityCode": "111",
      	       "holderName": "Card 1",
      	       "expirationDate": "11/17"
      	    },
      	 
      	    "acquirerInfo": {
      	       "orderId": "1",
      	       "timestamp": "25.01.2016 17:36:33"
      	    },
      	 
      	    "transactionAmount": "7500"
      	}
    • Expected response:
          {
      	    "acquirerInfo": {
      	        "orderId": 1,
      	        "timestamp": "25.01.2016 17:36:33"
      	    },
      	    "issuerInfo": {
      	        "orderId": 13,
      	        "timestamp": "28.01.2016 23:52:53"
      	    },
      	    "transactionStatus": {
      	        "code": "00",
      	        "message": "TRANSACTION_COMPLETED"
      	    }
          }  

About

SEP 2015 - Merchant backend application

License:MIT License


Languages

Language:Java 100.0%