2016-12-23 17:39:23 +00:00
|
|
|
|
# proxy-mocketbank-mpi
|
2016-12-15 10:13:44 +00:00
|
|
|
|
|
|
|
|
|
Сервис предназначен для эмулирования работы с 3DS MPI
|
|
|
|
|
|
2016-12-22 15:57:41 +00:00
|
|
|
|
Отправка запросов на сервис:
|
|
|
|
|
|
|
|
|
|
Вовлеченность карты:
|
|
|
|
|
```
|
|
|
|
|
Method: POST
|
|
|
|
|
http(s)//{host}:{port}/mpi/verifyEnrollment
|
|
|
|
|
params:
|
|
|
|
|
- pan
|
|
|
|
|
- year
|
|
|
|
|
- month
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Перенаправление на форму прохождения 3DS
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
Method: POST
|
|
|
|
|
http(s)//{host}:{port}/mpi/acs
|
|
|
|
|
params:
|
|
|
|
|
- PaReq
|
|
|
|
|
- MD (данные о мерчанте)
|
|
|
|
|
- TermUrl (URL на который будет возвращен результат прохождения 3DS)
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Проверка прохождения 3DS после получения PaRes:
|
|
|
|
|
```
|
|
|
|
|
Method: POST
|
|
|
|
|
http(s)//{host}:{port}/mpi/validatePaRes
|
|
|
|
|
params:
|
|
|
|
|
- pan
|
|
|
|
|
- paRes
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Конфигурация для docker-compose
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
version: '2'
|
|
|
|
|
services:
|
|
|
|
|
|
2016-12-23 17:39:23 +00:00
|
|
|
|
proxy_mocketbank_mpi:
|
|
|
|
|
image: dr.rbkmoney.com/rbkmoney/proxy-mocketbank-mpi:last
|
2016-12-22 15:57:41 +00:00
|
|
|
|
environment:
|
2016-12-23 17:39:23 +00:00
|
|
|
|
- SERVICE_NAME=proxy_mocketbank_mpi
|
2016-12-22 15:57:41 +00:00
|
|
|
|
command: |
|
|
|
|
|
-Xms64m -Xmx256m
|
2016-12-23 17:39:23 +00:00
|
|
|
|
-jar /opt/proxy-mocketbank-mpi/proxy-mocketbank-mpi.jar
|
|
|
|
|
--logging.file=/var/log/proxy-mocketbank-mpi/proxy-mocketbank-mpi.json
|
|
|
|
|
--proxy-test-mpi.callbackUrl=http://proxy-mocketbank-mpi:8080
|
|
|
|
|
working_dir: /opt/proxy-mocketbank-mpi
|
2016-12-22 15:57:41 +00:00
|
|
|
|
restart: on-failure:3
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
|
default:
|
|
|
|
|
driver: bridge
|
|
|
|
|
driver_opts:
|
|
|
|
|
com.docker.network.enable_ipv6: "true"
|
|
|
|
|
com.docker.network.bridge.enable_ip_masquerade: "true"
|
|
|
|
|
```
|