Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invoices #201

Open
LeMarwin opened this issue Oct 16, 2022 · 0 comments
Open

Invoices #201

LeMarwin opened this issue Oct 16, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@LeMarwin
Copy link
Contributor

Research and prototype a library to implement payment invoices

Each hexstody user can have multiple invoices those are either created manually or via API call. An invoice is information required to receive payment from external user to the hexstody account. That includes:

  • Currency and Payment method (LN or onchain)
  • Address (BTC, ETH) or LN invoice
  • Amount to send
  • Creation timestamp
  • Due timestamp
  • External order id (to link the invoice to an order in merchant's system)
  • Contact info of payer (email e.x.), optional, for possible refund communication.
  • Description
  • Optional callback URL from user which we call when the invoice change its state.

Invoices can have several states:

  • Created
  • Timeout
  • Canceled (with reason str field)
  • Paid (with proof of payment)

There should be menu in UI to list, view, create (form) and cancel invoices. There should be JSON API for list, view, create and cancel of invoices.

@LeMarwin LeMarwin added the enhancement New feature or request label Oct 16, 2022
@LeMarwin LeMarwin self-assigned this Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant