juks / iso-8583-socket-queue

ISO 8583 gateway
MIT License
194 stars 111 forks source link

Make a fake FIS upstream server #68

Closed ForageRob closed 2 years ago

ForageRob commented 2 years ago

We need a fake FIS server in order to perform FIS's certification tests on our own.

In order to use this upstream server, you cannot use the default docker-compose file. Instead use the following command to start the queue and fake FIS server instances,

docker-compose -f docker-compose-integration.yml up

Then you will have an HTTP server listening on localhost:8080. Use the following CURL commands to test (please change bit 7 at the end to a time within the last minute),

Echo curl -H 'Content-Type: application/json' -X POST -d '{"0": "0800", "11": 123456, "70": 301, "7" : "0818131730"}' http://localhost:8080

Transaction curl -H 'Content-Type: application/json' -X POST -d '{"0": "0200", "2": "1234567890123456", "3" : 9600, "4" : 50, "11": 123456, "12": "012159", "13": "0817", "18": 5411, "22": "013", "32": "harharitsme", "37": "123456789012", "41": "12345678", "42": "123456789012345", "43": "Here at forage we live", "48": "BobbyShop", "49": "840", "58": "12345", "7" : "0818132400"}' http://localhost:8080