The api has following functionalities:
Merchant Side:
- Search nearby Offers
- Get best parameters for nearby offers
Customer Side:
- Get best nearby offers
Steps to Run:
- Create a new Project in VDP and add the apis: Merchant Search, Merchant Locator, Merchant Measurement, VMORC.
- Create a JAVA keystore (.jks file) as shown in: https://developer.visa.com/pages/working-with-visa-apis/two-way-ssl.
- Clone this repo, and import the folder in IntelliJ IDEA IDE for Java.
- Go to src/main/basics package.
- Update the keystore paths,username,passwords,etc authorization fields in MerchantLocatorCall.java, MerchantSearchCall.java, MerchantMeasurementCall.java, and OffersDataApiCall.java
- Run MainApplicationClass.java.
- Now, our api runs at localhost:8080.
- There are 3 accessible endpoints:
a) localhost:8080/search
b) localhost:8080/customer_search
c) localhost:8080/filter - Open index.html (Merchant Side UI) and enter StoreID to get results.
- Open customer.html (Customer Side UI) and enter postal code and category to get results.