Miscellaneous
AsyncMiscellaneous
Bases: BaseAsyncAPI
Provides a wrapper for paystack Miscellaneous API
The Miscellaneous API are supporting APIs that can be used to provide more details to other APIs. https://paystack.com/docs/api/miscellaneous/
Source code in src/pypaystack2/api/miscellaneous.py
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
|
get_banks(country, use_cursor=False, next=None, previous=None, gateway=None, type=None, currency=None, pay_with_bank_transfer=None, pay_with_bank=None, pagination=50)
async
Get a list of all supported banks and their properties
Parameters:
Name | Type | Description | Default |
---|---|---|---|
country
|
Country
|
The country from which to obtain the list of supported banks. any value from the |
required |
use_cursor
|
bool
|
Flag to enable cursor pagination. |
False
|
next
|
Optional[str]
|
A cursor that indicates your place in the list. It can be used to fetch the next page of the list |
None
|
previous
|
Optional[str]
|
A cursor that indicates your place in the list. It should be used to fetch the previous page of the list after an intial next request |
None
|
gateway
|
Optional[Gateway]
|
The gateway type of the bank. Any value from the |
None
|
type
|
Optional[BankType]
|
Type of financial channel. For Ghanaian channels, please use either mobile_money for mobile money channels OR ghipps for bank channels |
None
|
currency
|
Optional[Currency]
|
Any value from the Currency enum. |
None
|
pay_with_bank_transfer
|
Optional[bool]
|
A flag to filter for available banks a customer can make a transfer to complete a payment |
None
|
pay_with_bank
|
Optional[bool]
|
A flag to filter for banks a customer can pay directly from |
None
|
pagination
|
int
|
The number of objects to return per page. Defaults to 50, and limited to 100 records per page. |
50
|
Returns:
Type | Description |
---|---|
Response
|
A named tuple containing the response gotten from paystack's server. |
Source code in src/pypaystack2/api/miscellaneous.py
get_countries()
async
Gets a list of Countries that Paystack currently supports
Returns:
Type | Description |
---|---|
Response
|
A named tuple containing the response gotten from paystack's server. |
Source code in src/pypaystack2/api/miscellaneous.py
get_states(country)
async
Get a list of states for a country for address verification.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
country
|
Country
|
Any value from the country enum. |
required |
Returns:
Type | Description |
---|---|
Response
|
A named tuple containing the response gotten from paystack's server. |
Source code in src/pypaystack2/api/miscellaneous.py
Miscellaneous
Bases: BaseAPI
Provides a wrapper for paystack Miscellaneous API
The Miscellaneous API are supporting APIs that can be used to provide more details to other APIs. https://paystack.com/docs/api/miscellaneous/
Source code in src/pypaystack2/api/miscellaneous.py
get_banks(country, use_cursor=False, next=None, previous=None, gateway=None, type=None, currency=None, pay_with_bank_transfer=None, pay_with_bank=None, pagination=50)
Get a list of all supported banks and their properties
Parameters:
Name | Type | Description | Default |
---|---|---|---|
country
|
Country
|
The country from which to obtain the list of supported banks. any value from the |
required |
use_cursor
|
bool
|
Flag to enable cursor pagination. |
False
|
next
|
Optional[str]
|
A cursor that indicates your place in the list. It can be used to fetch the next page of the list |
None
|
previous
|
Optional[str]
|
A cursor that indicates your place in the list. It should be used to fetch the previous page of the list after an intial next request |
None
|
gateway
|
Optional[Gateway]
|
The gateway type of the bank. Any value from the |
None
|
type
|
Optional[BankType]
|
Type of financial channel. For Ghanaian channels, please use either mobile_money for mobile money channels OR ghipps for bank channels |
None
|
currency
|
Optional[Currency]
|
Any value from the Currency enum. |
None
|
pay_with_bank_transfer
|
Optional[bool]
|
A flag to filter for available banks a customer can make a transfer to complete a payment |
None
|
pay_with_bank
|
Optional[bool]
|
A flag to filter for banks a customer can pay directly from |
None
|
pagination
|
int
|
The number of objects to return per page. Defaults to 50, and limited to 100 records per page. |
50
|
Returns:
Type | Description |
---|---|
Response
|
A named tuple containing the response gotten from paystack's server. |
Source code in src/pypaystack2/api/miscellaneous.py
get_countries()
Gets a list of Countries that Paystack currently supports
Returns:
Type | Description |
---|---|
Response
|
A named tuple containing the response gotten from paystack's server. |
Source code in src/pypaystack2/api/miscellaneous.py
get_states(country)
Get a list of states for a country for address verification.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
country
|
Country
|
Any value from the country enum. |
required |
Returns:
Type | Description |
---|---|
Response
|
A named tuple containing the response gotten from paystack's server. |