akash-network / console

Deploy docker containers on the Akash Network
https://console.akash.network
Apache License 2.0
56 stars 46 forks source link

[Console 2.0] Fiat Payments #247

Open baktun14 opened 3 months ago

baktun14 commented 3 months ago

Overview and Problem Statement

One of the most, if not the most, requested feature of the Akash Console is to be able to pay with fiat, aka credit cards. The system will be credit based (pre-payment), which will easily allow for free trial through free credits, like all the other cloud platforms currently do.

The goal is to keep the current deployment UX the same and only abstract the wallet interactions with a managed wallet server side.

This is a high level specification of the order and how we will implement the system.

Db Schema changes

v1.0

ygrishajev commented 2 months ago

At the moment, initial wallet creation is implemented on the backend, allowing for the creation of a wallet for a user and granting it a defined trial spending limit. The next steps involve using that wallet to create deployments. The following steps are currently in progress:

  1. A generic sign endpoint is being added so we can sign transactions from the console UI as usual but on our backend (~1-2 days).
  2. Updates to the console UI to use that endpoint (~1 week).

With the above, we should be able to adjust the UI to allow users to choose fiat payments, receive a wallet with trial allowance, and create deployments.

Upcoming tasks:

  1. Billing setup in the UI (~1 week).
  2. Implementing fiat billing endpoints on the backend (likely webhooks) (~1 week).
  3. Regular jobs to refill wallets and charge users (~2-4 days).
  4. Critical notifications (~2-4 days).

Note: all the estimates are approximate as I personally see them.