Skip to content

apemon/corda-promptpay-poc

Repository files navigation

Corda PromptPay POC

This is a POC project of PromptPay using R3 Corda. Nothing more than that :P

Summary

This project consist of several modules as follow:

  • asset issue and asset transfer using built-in Corda flow (AssetIssueFlow and AssetPaymentFlow)
  • proxy name registration (ProxyNameIssueFlow)
  • proxy name inquiry using oracle (ProxyNameQueryFlow)
  • money transfer using proxy name (AccountTransferProposeFlow and AccountTransferConfirmFlow)

Pre-Requisites

  • JDK 8 installed and available on your path (Minimum version: 1.8_131).

if you want to develop, you need additional as follow:

Getting Set Up

To get started, clone this repository with:

 git clone https://github.com/apemon/corda-promptpay-poc.git

And change directories to the newly cloned repo:

 cd corda-promptpay-poc

Building

Unix:

 ./gradlew deployNodes

Windows:

 gradlew.bat deployNodes

Running the Nodes

Once the build finishes, change directories to the folder where the newly built nodes are located:

 cd build/nodes

The Gradle build script will have created a folder for each node. You'll see three folders, one for each node and a runnodes script. You can run the nodes with:

Unix:

 ./runnodes

Windows:

runnodes.bat

Testing

You can interact with Corda via HTTP. You can use postman script that simulate simple scenario by import "promptpay-poc.postman_collection.json"

Further reading

My medium blog post (Thai version) here.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published