An open API service indexing awesome lists of open source software.

https://github.com/interledger/open-payments-workshop

Open Payments flow showcased for a simple workshop
https://github.com/interledger/open-payments-workshop

Last synced: about 1 month ago
JSON representation

Open Payments flow showcased for a simple workshop

Awesome Lists containing this project

README

          

# open-payments-workshop

Open Payments flow showcased for a simple workshop

This script sends money between two wallet addresses, using the [Open Payments API](https://openpayments.dev).

This script sets up an incoming payment on a receiving wallet address, and creates two outgoing payments on the sending wallet address.
It also creates an interactive outgoing payment grant, which will require user interaction.
The script then finalizes the grant (after it's accepted interactively via the browser), and creates two outgoing payments.

### Steps

1. Make sure you have NodeJS installed
2. Run `npm install`
3. Get a private key, client wallet address and keyId from the [test wallet](https://wallet.interledger-test.dev/), and add them in the script.

### For workshop coding

4. Pick a receiving wallet address, and a sending wallet address.
5. Run `node index.js`
6. Click on the outputted URL, to accept the outgoing payment grant.
7. Return to the terminal, hit enter. After this, the script will create the outgoing payment and funds will move between the receiver and the sender!