forked from iamraphson/react-paystack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.d.ts
More file actions
27 lines (27 loc) · 771 Bytes
/
Copy pathtypes.d.ts
File metadata and controls
27 lines (27 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
declare type Currency = 'NGN' | 'GHS' | 'USD';
declare type PaymentChannels = 'bank' | 'card' | 'qr' | 'ussd' | 'mobile_money';
declare type Bearer = 'account' | 'subaccount';
declare type phone = number | string;
export interface PaystackProps {
publicKey: string;
email: string;
firstname?: string;
lastname?: string;
phone?: phone;
amount: number;
reference?: string;
metadata?: {
custom_field: Record<string, string>[];
};
currency?: Currency;
channels?: PaymentChannels[];
label?: string;
plan?: string;
quantity?: number;
subaccount?: string;
transaction_charge?: number;
bearer?: Bearer;
'data-custom-button'?: string;
split_code?: string;
}
export {};