Interledger Protocol Payments | |
Interledger Protocol (ILP) payments is a new feature coming in Tiki 24. Interledger is an open and inclusive payments network which does not utilize a blockchain. The Interledger Protocol is an open protocol suite for sending payments across different ledgers. |
How does Interledger Protocol (ILP) work? | |
The Interledger Protocol is a set of rules that define how nodes should send value over the Interledger network. A single aggregate payment from source to destination is split into multiple ILP packets. Each ILP packet contains transaction information, which is private to the nodes participating in the transaction. The sender constructs and sends a Prepare packet as a request to the connecting router. The routers forward the packet until it reaches the receiver. The receiver then accepts or rejects the packet by sending a Fulfill packet or a Reject packet as the response. The routers relay the response from the receiver back to the sender. When the sender receives a Fulfill packet, it knows that the packet was successfully delivered to the receiver. The sender then continues to send the remaining Prepare packets until the value is fully transferred. You can read the whitepaper here. |
Why use Interledger Protocol (ILP)? | |
|
How to do Interledger Protocol (ILP) payments using Tiki? | |
Explained below is the step by step guide to implement Interledger Protocol (ILP) payments in Tiki assuming there is a working domain already setup, in this example with the following characteristics:
|
Step 1 - Getting and installing a compatible Tiki instance: | |
At the date of this writing you have to use a specific 24.x version; it will be merged to master soonWe first need to upgrade composer.tiki.org to use Composer v2, which was recently released. and available via Tiki Manager. |
Step 2 - Running the ILP moneyd local test network and the ILP SPSP Invoice Server | |
MoneyD allows you to run an isolated local test network for development. The ILP SPSP is a basic protocol for exchanging payment information between payee and payer to facilitate payment over Interledger. In our case Tiki is the client, that talks to the SPSP server. a. Navigate one level up your website directory
b. Create a directory where we will get the tools and enter it
c. Export the path so you can run npm commands as your user
d. Install moneyd and the PM2 daemon process manager via npm
e. Finally install the ilp-spsp server
f. Restore your path and start moneyd and PM2
|
Step 3 - Setup the Tiki ILP payment feature and a basic cart | |
Head to your Tiki instance Settings > Control panels and Set as my default the "Advanced" and "Experimental" filters to have all the options available
|
Step 4 - Test an order | |
Add a product to your cart, click Check-out in the right panel to obtain the ILP pointer for the payment
Reload the page or Check Payment and your payment will be confirmed
|
Related | |
|
A special thank you | |
This work was made possible by a grant from Grant for the Web, a fund to boost open, fair, and inclusive standards and innovation in Web Monetization.
|