Skip to content

Commit 8ed8074

Browse files
committed
fix(paywithflutterwavebase): add missing currencies to options prop type
1 parent 1b94443 commit 8ed8074

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

src/PaywithFlutterwaveBase.tsx

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,35 @@ export const PayWithFlutterwavePropTypesBase = {
3636

3737
export const OptionsPropTypeBase = {
3838
amount: PropTypes.number.isRequired,
39-
currency: PropTypes.oneOf(['GBP', 'NGN', 'USD', 'GHS', 'KES', 'ZAR', 'TZS']),
39+
currency: PropTypes.oneOf([
40+
'AUD',
41+
'BIF',
42+
'CDF',
43+
'CAD',
44+
'CVE',
45+
'EUR',
46+
'GBP',
47+
'GHS',
48+
'GMD',
49+
'GNF',
50+
'KES',
51+
'LRD',
52+
'MWK',
53+
'MZN',
54+
'NGN',
55+
'RWF',
56+
'SLL',
57+
'STD',
58+
'TZS',
59+
'UGX',
60+
'USD',
61+
'XAF',
62+
'XOF',
63+
'ZAR',
64+
'ZMK',
65+
'ZMW',
66+
'ZWD'
67+
]),
4068
payment_plan: PropTypes.number,
4169
subaccounts: PropTypes.arrayOf(PropTypes.shape({
4270
id: PropTypes.string.isRequired,

0 commit comments

Comments
 (0)