forked from iamraphson/react-paystack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
28 lines (24 loc) · 654 Bytes
/
Copy pathtypes.ts
File metadata and controls
28 lines (24 loc) · 654 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
28
type Currency = 'NGN' | 'GHS' | 'USD';
type PaymentChannels = 'bank' | 'card' | 'qr' | 'ussd' | 'mobile_money';
type Bearer = 'account' | 'subaccount';
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;
}