Payment Gateway is a mock payment processing service designed to be used by the Resellio API. It simulates real-world payment gateway functionalities and is used for testing the Resellio ecosystem.
- rust version >=
1.85 - docker version >=
28.0
-
Clone the repository:
git clone https://github.com/Resellio/payment-gateway.git cd payment-gateway -
Create
.envfile and fill it accordingly to.env.local. -
Build and start application:
cargo run
You can optionally pass
--releaseflag to run optimized build:cargo run --release
-
Clone the repository:
git clone https://github.com/Resellio/payment-gateway.git cd payment-gateway -
Build an image:
docker build -t payment-gateway . -
Run container:
docker run -e API_ORIGIN={API_ORIGIN} -e PORT={APP_PORT} -p {YOUR_MACHINE_PORT}:{APP_PORT} payment-gateway
- Run tests using
cargo:cargo test