MCPcopy Create free account
hub / github.com/cameri/nostream / createInvoice

Method createInvoice

src/@types/services.ts:10–10  ·  view source on GitHub ↗
(pubkey: Pubkey, amount: bigint, description: string)

Source from the content-addressed store, hash-verified

8export interface IPaymentsService {
9 getInvoiceFromPaymentsProcessor(invoice: string | Invoice): Promise<Partial<Invoice>>
10 createInvoice(pubkey: Pubkey, amount: bigint, description: string): Promise<Invoice>
11 updateInvoice(invoice: Partial<Invoice>): Promise<void>
12 updateInvoiceStatus(invoice: Pick<Invoice, 'id' | 'status'>): Promise<Invoice>
13 confirmInvoice(invoice: Pick<Invoice, 'id' | 'amountPaid' | 'confirmedAt' | 'status' | 'pubkey'>): Promise<void>

Callers 4

handleRequestMethod · 0.65
createInvoiceMethod · 0.65

Implementers 1

PaymentsServicesrc/services/payments-service.ts

Calls

no outgoing calls

Tested by

no test coverage detected