Verification
VerificationClient
Bases: BaseAPIClient
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/sub_clients/sync_clients/verification.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 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 |
|
resolve_account_number(account_number, bank_code, alternate_model_class=None)
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
|
required |
alternate_model_class
|
type[PaystackDataModel] | None
|
A pydantic model class to use instead of the
default pydantic model used by the library to present the data in
the |
None
|
Returns:
Type | Description |
---|---|
Response[BankAccountInfo] | Response[PaystackDataModel]
|
A pydantic model containing the response gotten from paystack's server. |
Source code in src/pypaystack2/sub_clients/sync_clients/verification.py
resolve_card_bin(bin_, alternate_model_class=None)
Get more information about a customer's card
Parameters:
Name | Type | Description | Default |
---|---|---|---|
bin_
|
str
|
First 6 characters of card |
required |
alternate_model_class
|
type[PaystackDataModel] | None
|
A pydantic model class to use instead of the
default pydantic model used by the library to present the data in
the |
None
|
Returns:
Type | Description |
---|---|
Response[CardBin] | Response[PaystackDataModel]
|
A pydantic model containing the response gotten from paystack's server. |
Source code in src/pypaystack2/sub_clients/sync_clients/verification.py
validate_account(account_name, account_number, account_type, bank_code, country_code, document_type, document_number=None, alternate_model_class=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 |
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
|
str | None
|
Customer’s mode of identity number |
None
|
alternate_model_class
|
type[PaystackDataModel] | None
|
A pydantic model class to use instead of the
default pydantic model used by the library to present the data in
the |
None
|
Returns:
Type | Description |
---|---|
Response[AccountVerificationInfo] | Response[PaystackDataModel]
|
A pydantic model containing the response gotten from paystack's server. |
Source code in src/pypaystack2/sub_clients/sync_clients/verification.py
AsyncVerificationClient
Bases: BaseAsyncAPIClient
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/sub_clients/async_clients/verification.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 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 |
|
resolve_account_number(account_number, bank_code, alternate_model_class=None)
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
|
required |
alternate_model_class
|
type[PaystackDataModel] | None
|
A pydantic model class to use instead of the
default pydantic model used by the library to present the data in
the |
None
|
Returns:
Type | Description |
---|---|
Response[BankAccountInfo] | Response[PaystackDataModel]
|
A pydantic model containing the response gotten from paystack's server. |
Source code in src/pypaystack2/sub_clients/async_clients/verification.py
resolve_card_bin(bin_, alternate_model_class=None)
async
Get more information about a customer's card
Parameters:
Name | Type | Description | Default |
---|---|---|---|
bin_
|
str
|
First 6 characters of card |
required |
alternate_model_class
|
type[PaystackDataModel] | None
|
A pydantic model class to use instead of the
default pydantic model used by the library to present the data in
the |
None
|
Returns:
Type | Description |
---|---|
Response[CardBin] | Response[PaystackDataModel]
|
A pydantic model containing the response gotten from paystack's server. |
Source code in src/pypaystack2/sub_clients/async_clients/verification.py
validate_account(account_name, account_number, account_type, bank_code, country_code, document_type, document_number=None, alternate_model_class=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 |
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
|
str | None
|
Customer’s mode of identity number |
None
|
alternate_model_class
|
type[PaystackDataModel] | None
|
A pydantic model class to use instead of the
default pydantic model used by the library to present the data in
the |
None
|
Returns:
Type | Description |
---|---|
Response[AccountVerificationInfo] | Response[PaystackDataModel]
|
A pydantic model containing the response gotten from paystack's server. |