You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Invoices are a roadmap feature. The backend has an InvoiceService but there is no corresponding on-chain contract to track invoice state, prevent double-payment, or provide a verifiable invoice proof.
Technical Requirements
Create fluxapay/src/invoice.rs Soroban contract.
Store: invoice_id, merchant_id, amount, currency, due_date, status (Draft/Issued/Paid/Cancelled), payment_id (Option).
Overview
Invoices are a roadmap feature. The backend has an
InvoiceServicebut there is no corresponding on-chain contract to track invoice state, prevent double-payment, or provide a verifiable invoice proof.Technical Requirements
fluxapay/src/invoice.rsSoroban contract.invoice_id,merchant_id,amount,currency,due_date,status (Draft/Issued/Paid/Cancelled),payment_id (Option).create_invoice,issue_invoice,mark_paid(payment_id),cancel_invoice,get_invoice.PaymentProcessor: mark asPaidwhen the linked payment is confirmed.INVOICE/ISSUED,INVOICE/PAID,INVOICE/CANCELLEDevents.