Flick Python SDKs contains FlickPay inflow and outflow solutions
Project description
Flick SDK For PYTHON
flick_paymentSDK is a secure and quick way for customers to access accounts and interact with the Flick API for Identity, Financial Data, Payouts, Collections, and Miscellaneous operations. It provides a straightforward integration for python developers.
Features
- Checkout: Collect payments easily with various options.
- Banking: Retrieve bank lists, perform name inquiries, and manage payouts.
- Identity Verification: Verify BVN, NIN, CAC, and more.
- Secure SDK: Handles multi_factor authentication, credential validation, and error handling.
Getting Started
-
Register on Flick:
Sign up at Flick to obtain your API keys (secret_keyandpublic_key). -
Installation:
Install the package viapip:pip install flickpaysdk(latest version) pip install dataclasses pip install requests
How to Use the Class
-
Initialize the SDK with your secret key:
Create an instance of the flick_payment class using your secret_key.
Usage:
Initialize the SDK
import requests
from flickpaysdk.flick import FlickpaySDK, checkOutRequest
# Replace with your actual secret key
sdk = FlickpaySDK(secret_key="your_secret_key")
-
For Checkout charge request
Initiate a checkout process:
checkout_payload = checkOutRequest(
amount = "1000",
Phoneno = "1234567890",
currency_collected = "NGN",
currency_settled = "USD",
email = "example@example.com",
redirectUrl = "https://example.com/redirect",
webhookUrl = "https://example.com/webhook",
)
charge_response = sdk.flickCheckOut(checkout_payload)
print(charge_response)
-
Bank List Retrieval
Retrieve a list of supported banks:
bank_list = sdk.flickBankListSdk()
print(bank_list)
-
Bank Name Inquiry
Perform a bank name inquiry:
bank_name_payload = BankNameRequest(
account_number = "1234567890",
bank_code = "001"
)
response = sdk.flickBankNameInquiry(bank_name_payload)
print(response)
-
Payout Initialization
Initiate a payout:
payout_payload = PayoutRequest(
bank_name = "Example Bank",
bank_code = "012",
account_number = "1234567890",
amount = "1000",
narration = "Payment for services",
currency = "NGN",
beneficiary_name = "John Doe",
)
response = sdk.flickInitiatePayoutSdk(payout_payload)
print(response)
-
Payout Verification
Verify a payout:
transaction_id = "1234567890"
verify_payout_response = verify_payout_response = sdk.flickVerifyPayoutSdk(transaction_id)
print(verify_payout_response)
-
Identity Verification
Perform various identity verifications:
*** BVN Verification ***
bvn_payload = BvnRequest(
data_type = "basic",
data = "0000222211"
)
bvn_response = sdk.flickIdentityBvnSdk(bvn_payload)
print(bvn_response)
*** NIN Verification ***
nin_payload = NinRequest(
nin = "0001111222",
dob = "0000222211"
)
nin_response = sdk.flickIdentityNinSdk(nin_payload)
print(nin_response)
*** CAC Verification (Basic) ***
cac_payload = CacRequest(
rcNumber = "0001111222"
)
cac_response = sdk.flickIdentityCacBasicSdk(cac_payload)
print(cac_response)
*** CAC Verification (Advance) ***
cac_payload = CacRequest(
rcNumber = "0001111222"
)
cac_response = sdk.flickIdentityCacBasicSdk(cac_payload)
print(cac_response)
Best Practices
Always handle exceptions raised by API calls. Store your secret_key securely to prevent unauthorized access.
Support
If you need help with flick_paymentSDK or your Flick integration, reach out to support@getflick.app or join our Slack channel.
License This project is licensed under the MIT License.
# pythonsdk
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flickpaysdk-2.0.0.tar.gz.
File metadata
- Download URL: flickpaysdk-2.0.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f13209a412d636e7ef218d3bef416e75113ea24a446467bdc3c265ae5a0077db
|
|
| MD5 |
601f3ced96f341d4be3cf7888f08075a
|
|
| BLAKE2b-256 |
0d7d26c909b15f87a8e1921437aad7262222dc1eeda28e2d4bd61f31e5dca9cc
|
File details
Details for the file flickpaysdk-2.0.0-py3-none-any.whl.
File metadata
- Download URL: flickpaysdk-2.0.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a885ff0b5db76125ba15d89a578c4dc1c000384606c000238789acff3b8ea129
|
|
| MD5 |
7a7a9f8715f9f8c75262a133ac6fb515
|
|
| BLAKE2b-256 |
5a9145e8e249cb8a8b5975b99caebc13c78b961af12b4a36e70c66918756559e
|