Verification
AsyncVerification
Bases: BaseAsyncAPI
Provides a wrapper for paystack Verification API
The Verification API allows you to perform KYC processes. https://paystack.com/docs/api/verification/
Note
This feature is only available to businesses in Nigeria.
Source code in src/pypaystack2/api/verification.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 175 176 177 178 179 180 181 |
|
resolve_account_number(account_number, bank_code)
async
Confirm an account belongs to the right customer
Note
Feature Availability This feature is only available to businesses in Nigeria.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
account_number
|
str
|
Account Number |
required |
bank_code
|
str
|
You can get the list of bank codes by calling the
Miscellaneous API wrapper |
required |
Returns:
Type | Description |
---|---|
Response
|
A named tuple containing the response gotten from paystack's server. |
Source code in src/pypaystack2/api/verification.py
resolve_card_bin(bin)
async
Get more information about a customer's card
Parameters:
Name | Type | Description | Default |
---|---|---|---|
bin
|
str
|
First 6 characters of card |
required |
Returns:
Type | Description |
---|---|
Response
|
A named tuple containing the response gotten from paystack's server. |
Source code in src/pypaystack2/api/verification.py
validate_account(account_name, account_number, account_type, bank_code, country_code, document_type, document_number=None)
async
Confirm the authenticity of a customer's account number before sending money
Parameters:
Name | Type | Description | Default |
---|---|---|---|
account_name
|
str
|
Customer's first and last name registered with their bank |
required |
account_number
|
str
|
Customer's account number |
required |
account_type
|
AccountType
|
bank_code: The bank code of the customer’s bank. You can fetch the bank codes by
using Miscellaneous API wrapper |
required |
bank_code
|
str
|
The bank code of the customer’s bank |
required |
country_code
|
Country
|
Any value from the |
required |
document_type
|
Document
|
Customer’s mode of identity. any value from the
|
required |
document_number
|
Optional[str]
|
Customer’s mode of identity number |
None
|
Returns:
Type | Description |
---|---|
Response
|
A named tuple containing the response gotten from paystack's server. |
Source code in src/pypaystack2/api/verification.py
Verification
Bases: BaseAPI
Provides a wrapper for paystack Verification API
The Verification API allows you to perform KYC processes. https://paystack.com/docs/api/verification/
Note
This feature is only available to businesses in Nigeria.
Source code in src/pypaystack2/api/verification.py
resolve_account_number(account_number, bank_code)
Confirm an account belongs to the right customer
Note
Feature Availability This feature is only available to businesses in Nigeria.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
account_number
|
str
|
Account Number |
required |
bank_code
|
str
|
You can get the list of bank codes by calling the
Miscellaneous API wrapper |
required |
Returns:
Type | Description |
---|---|
Response
|
A named tuple containing the response gotten from paystack's server. |
Source code in src/pypaystack2/api/verification.py
resolve_card_bin(bin)
Get more information about a customer's card
Parameters:
Name | Type | Description | Default |
---|---|---|---|
bin
|
str
|
First 6 characters of card |
required |
Returns:
Type | Description |
---|---|
Response
|
A named tuple containing the response gotten from paystack's server. |
Source code in src/pypaystack2/api/verification.py
validate_account(account_name, account_number, account_type, bank_code, country_code, document_type, document_number=None)
Confirm the authenticity of a customer's account number before sending money
Parameters:
Name | Type | Description | Default |
---|---|---|---|
account_name
|
str
|
Customer's first and last name registered with their bank |
required |
account_number
|
str
|
Customer's account number |
required |
account_type
|
AccountType
|
bank_code: The bank code of the customer’s bank. You can fetch the bank codes by
using Miscellaneous API wrapper |
required |
bank_code
|
str
|
The bank code of the customer’s bank |
required |
country_code
|
Country
|
Any value from the |
required |
document_type
|
Document
|
Customer’s mode of identity. any value from the
|
required |
document_number
|
Optional[str]
|
Customer’s mode of identity number |
None
|
Returns:
Type | Description |
---|---|
Response
|
A named tuple containing the response gotten from paystack's server. |