nimiq / hub

The Nimiq Hub provides a unified interface for all Nimiq accounts, addresses, and contracts.
https://nimiq.github.io/hub
31 stars 11 forks source link

Allow for recurring payments #457

Closed code3z closed 3 years ago

code3z commented 3 years ago

Allow apps to request for recurring payments.

Maybe it could be done in the service worker? And the UI could be mostly reused from the request for normal payments, just with some information on how often the payment will happen.

code3z commented 3 years ago

I might be able to help with it, but I don't know where to start.

sisou commented 3 years ago

Automated recurring payments (subscriptions) are not supported by the blockchain, and thus cannot be realized only with the client-side Wallet.

It is currently only possible if an always-on service stores the pre-signed transactions and submits them at the correct time. And even then this does not guarantee that the NIM are still available in the Wallet when future transactions are sent. This is currently outside the scope of the Wallet/Hub.

code3z commented 3 years ago

So this should be requested on the blockchain section and not the hub?