Within the Week of LApps, Blockstream introduced the fourth Lightning application, Paypercall. According to the developers, it is a welcome solution for a new generation of micro-payment networks, through which web developers will be able to request payment for specific API operations.
As examples the creators name automatically performed payments when sending SMS or image processing. Thus, with the help of Paypercall and Lightning technology, developers will be able to set up appropriate instant transactions.
As stated in the message, Node.js programmers can use Paypercall as an intermediate software that monitors the implementation of payments to the Lightning Charge server before approving the request for API use. Also, Paypercall can be used as a reverse proxy, which intercepts service requests until a payment is made.
Paypercall Code Example
For users, the process is very simple: if they want to use Lightning Charge in Paypercall, an invoice will automatically be created when the developer URL is opened. After it is paid, users can send a request for the use of the corresponding service.