Enums
korapay_client.enums
Enumerations help improve developer experience as it limits the number of options available for a parameter value.
The enums package contains all the internal and public enums used by korapay_client package.
Note
All public enums can be imported directly from korapay_client.
E.g.,
korapay_client.enums.public
Country
Bases: str, Enum
An enums of countries supported by Korapay.
Attributes:
| Name | Type | Description |
|---|---|---|
NIGERIA |
str
|
an enum variant. |
KENYA |
str
|
an enum variant. |
GHANA |
str
|
an enum variant. |
Note
Some client methods might require this enum as a parameter. Use the variant of this enum that aligns with your needs.
Source code in src/korapay_client/enums/public.py
Currency
Bases: str, Enum
An enum of currencies supported by Korapay.
Attributes:
| Name | Type | Description |
|---|---|---|
NGN |
str
|
an enum variant. |
KES |
str
|
an enum variant. |
GHS |
str
|
an enum variant. |
USD |
str
|
an enum variant. |
Note
Some client methods might require this enum as a parameter. Use the variant of this enum that aligns with your needs.
Source code in src/korapay_client/enums/public.py
MobileMoneyOperator
Bases: str, Enum
An enum of mobile money operators supported by Korapay.
Attributes:
| Name | Type | Description |
|---|---|---|
SAFARICOM_KENYA |
str
|
an enum variant. |
AIRTEL_KENYA |
str
|
an enum variant. |
AIRTEL_GHANA |
str
|
an enum variant. |
MTN_GHANA |
str
|
an enum variant. |
Note
Some client methods might require this enum as a parameter. Use the variant of this enum that aligns with your needs.
Source code in src/korapay_client/enums/public.py
PaymentChannel
Bases: str, Enum
An enum of payment channels supported by Korapay.
Attributes:
| Name | Type | Description |
|---|---|---|
CARD |
str
|
an enum variant. |
BANK_TRANSFER |
str
|
an enum variant. |
MOBILE_MONEY |
str
|
an enum variant. |
Note
Some client methods might require this enum as a parameter. Use the variant of this enum that aligns with your needs.