thawani-nodejs
Version:
Node.js library for Thawani Payment Gateway
26 lines (25 loc) • 667 B
TypeScript
import { BaseResource } from './base';
export interface Payment {
activity: string;
payment_id: string;
masked_card: string;
card_type: string;
status: 'inProcess' | 'successful' | 'failed';
amount: number;
fee: number;
refunded: boolean;
refunds: any[];
payment_intent?: string;
checkout_invoice?: string;
created_at: string;
reason?: string;
}
export declare class Payments extends BaseResource {
retrieve(paymentId: string): Promise<Payment>;
list(params?: {
limit?: number;
skip?: number;
checkout_invoice?: string;
payment_intent?: string;
}): Promise<Payment[]>;
}