Payper Gateway is an HTTP (reverse) proxy that verifies payments to route requests. As a practical application, it can be used to sell API requests for digital cash (crypto-currency) on the Internet. See the detailed description in this medium article.
The gateway is part of a larger concept called Payper that deals with peer-to-peer (disintermediated) payment processing for APIs. Payper is a toolset that aims to bring together crypto-currency micropayments and APIs (web services in general) in order to allow open trading of digital resources on the Internet.
Payper Gateway works as a backend java-based component, so it is no different than running an usual JVM based service. Until it is going to be available as a docker image or a fully executable jar in a release, it is necessary to compile and package in order to run it.
- Java SDK 11 (or newer)
- Maven 3.5.0+
Payper Gateway uses Hedera Java SDK as a dependency that is not yet available in a maven repo. That is why it is necessary to install Hedera SDK separately.
git clone git@github.com:hashgraph/hedera-sdk-java.git
cd hedera-sdk-java
mvn install
- Change dir into
payper-gateway
and build it:
mvn package
- Run the Payper Gateway jar from your current directory:
java -jar target/gateway-1.0.0-SNAPSHOT.jar
Run the docker-compose.yml
mvn package
docker-compose build
docker-compose up
Stop the docker-compose
docker-compose down
This component basically integrates Hedera Hashgraph payment verification into an extension of Spring Cloud Gateway.
See this article for more information about how the project started and the plans for future.