Skip to content

About

Simple payments platform with OP integration

Topics

Resources

Stars

51 stars

Watchers

2 watching

Forks

Latest commit

 

History

225 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interledger Pay

Interledger Pay

What is Interledger Pay?

Interledger Pay is a simplified payments platform, where you can easily send or request money from anyone anywhere in the world, if you own a Wallet Address. A Wallet Address is a standardized identifier for a payment account. In the same way that an email address provides an identifier for a mailbox in the email ecosystem, a wallet address is used by an account holder to share the details of their account with a counter-party. If you don't already own one, you can create one at Interledger Test Wallet.

See Interledger Pay in action here.

New to Interledger?

Never heard of Interledger before, or you would like to learn more? Here are some good places to start:

Contributing

Please read the contribution guidelines before submitting contributions. All contributions must adhere to our code of conduct.

PR titles must follow Conventional Commits. Releases are created by running the Release workflow on main, which derives the next version from these titles.

Deployment

Interledger Pay is deployed with its Helm chart, oci://ghcr.io/interledger/charts/interledger-pay. See the chart README.

Local Development Environment

Prerequisites

Environment Setup

# Install Node > 20
nvm install lts/iron
nvm use lts/iron

# Install pnpm using Corepack
corepack enable

If you do not have corepack installed locally you can use npm or yarn to install pnpm:

npm install pnpm -g
# or
yarn install pnpm -g

For alternative methods of installing pnpm, you can refer to the official pnpm documentation.

To install dependencies, execute:

pnpm i

Configuration

Interledger Pay reads its configuration from two YAML files: the settings in CONFIG_FILE (default config.yaml) and the secrets in SECRETS_FILE (default secrets.yaml). Each file accepts only its own keys. The application validates both at startup and does not start if they are not valid; it lists every problem it finds.

Note config.yaml and secrets.yaml are NOT tracked in the version control system, and should NOT be included in any commits.

Copy the examples in the project's root directory:

cp config.example.yaml config.yaml
cp secrets.example.yaml secrets.yaml

You will need to create a USD wallet address in the Test Wallet application, then generate public and private key for the wallet address in the Developer Keys found in the Settings menu of Interledger Test Wallet.

Stripe configuration is required for the application to start. Set stripe.publishableKey in config.yaml and stripe.secretKey in secrets.yaml to matching test-mode or live-mode keys. These keys enable card payments.

Key File Description
host config URL where Interledger Pay is hosted, locally https://localhost:5200
redirectUrl config URL of the finish page after the interaction with the identity provider. Optional, defaults to <host>/finish
walletAddress.url config The wallet address Interledger Pay uses as its client
walletAddress.keyId config The key id of the wallet address key
walletAddress.privateKey secrets The Ed25519 private key of the wallet address, in PEM (or the base64 encoded PEM that Test Wallet generates)
session.cookieSecret secrets Secret that signs the session cookie, at least 32 characters
stripe.publishableKey config Stripe publishable key (pk_test_… or pk_live_…)
stripe.secretKey secrets Stripe secret key, of the same mode as the publishable key

In production (NODE_ENV=production) every URL must use https.

Local Interledger Pay

Navigate to the project's root directory and execute:

docker compose -f docker-compose.dev.yml up

If you receive certificate error, then create a .cert folder in your root directory, and generate certificates cert.pem and key.pem into the created .cert directory.

mkdir -p .cert
openssl req -x509 -newkey rsa:2048 -nodes -days 365 \
  -keyout ./.cert/key.pem -out ./.cert/cert.pem \
  -subj "/CN=localhost" \
  -addext "subjectAltName=DNS:localhost,IP:127.0.0.1"

Upon executing the docker command, the following will be available

About

Simple payments platform with OP integration

Topics

Resources

Stars

51 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages