Setup payment processing microservice in the blink of an eye.

Max Kotliar
1 min readNov 25, 2015

--

In previous article I told you about the idea of having a payment processing server. Ready to setup your own payment server? I’ll show you the fastest way. We’ll use Docker and a command line terminal. if you do not have Docker here’s the manual on how to setup it.

Open a shell terminal, create an empty folder and go into it. Like this:

$ mkdir payum-server && cd payum-server

Create docker-composer.yml inside the folder:

version: '2'services:
payum-server:
image: payum/payum-server
environment:
- PAYUM_MONGO_URI=mongodb://mongo:27017/payum_server
- PAYUM_DEBUG=1
links:
- mongo
ports:
- "8080:80"

mongo:
image: mongo

and run the docker-compose command:

$ docker-compose up -d

Done!

Now you have a fully functional payment processing\aggregation server with mongodb as a storage. Here’s some links to start from:

The server provides a REST API which is not easy to explore. To simplify your life there is a UI client for the server which also easy to install, just add next lines to the docker-compose.yml file

version: '2'services:
payum-server-ui:
image: payum/server-ui
ports:
- "8081:80"

Restart containers

docker-compose stop; docker-compose up 

Now connect your UI client to your server, for that open this links in a browser: https://localhost:8081/#/app/settings?api=http%3A%2F%2Flocalhost:8080

Now I’d like to invite you to join me in this journey. Give it a try, send me your feedback, contribute.

I am looking forward to hearing from you.

--

--