UNPKG

ws402

Version:

WebSocket implementation of X402 protocol for pay-as-you-go digital resources with automatic refunds

13 lines (12 loc) 492 B
import { PaymentProvider, PaymentVerification } from '../types'; /** * Mock payment provider for testing and development * Replace with real payment provider in production */ export declare class MockPaymentProvider implements PaymentProvider { private payments; generatePaymentDetails(amount: number): any; verifyPayment(proof: any): Promise<PaymentVerification>; issueRefund(proof: any, amount: number): Promise<void>; getPaymentHistory(): Array<[string, number]>; }