UNPKG

thawani-nodejs

Version:

Node.js library for Thawani Payment Gateway

18 lines (17 loc) 464 B
import { BaseResource } from './base'; export interface PaymentMethod { id: string; bin: number; masked_card: string; expiry_month: number; expiry_year: number; nickname?: string; brand: 'Visa' | 'MasterCard'; card_type: 'Debit' | 'Credit'; } export declare class PaymentMethods extends BaseResource { list(customerId: string): Promise<PaymentMethod[]>; delete(cardId: string): Promise<{ success: boolean; }>; }