PaymentRequest
Returned byreadSignedInvoice and useNFCMerchant.createPaymentRequest. Represents a verified payment invoice.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
TypeScript types for payment creation, processing, and status.
readSignedInvoice and useNFCMerchant.createPaymentRequest. Represents a verified payment invoice.
interface PaymentRequest {
paymentId: string;
amount: string; // USDC decimal string, e.g. "25.00"
merchantWallet: string; // Merchant's on-chain wallet address
transactionId: string; // Alias for paymentId (backwards compatibility)
currency: 'USDC';
network: 'base';
timestamp: number; // Unix timestamp in ms
expiresAt?: number; // Unix timestamp in ms
}
interface CreatePaymentRequest {
amount: string; // USDC decimal string
merchantId: string;
}
interface CreatePaymentResponse {
paymentId: string;
merchantWallet: string;
expiresAt: number; // Unix timestamp in ms
}
interface ProcessPaymentRequest {
paymentId: string;
txHash?: string;
customerWallet?: string;
}
interface ProcessPaymentResponse {
transactionId?: string;
status: PaymentStatus;
confirmedAt?: number; // Unix timestamp in ms
}
interface PaymentStatusResponse {
status: PaymentStatus;
txHash?: string;
confirmedAt?: number;
error?: string;
}
interface PayFromPoolRequest {
payment_id: string;
customer_id: string;
amount: string;
}
interface PayFromPoolResponse {
success: boolean;
transactionId?: string;
status: PaymentStatus;
error?: string;
}
