Name | dthriz JSON |
Version |
0.0.7
JSON |
| download |
home_page | https://merchant.getflick.co/ |
Summary | Flick Python SDKs contains FlickPay inflow and outflow solutions |
upload_time | 2024-11-27 17:05:17 |
maintainer | None |
docs_url | None |
author | Qraba inc |
requires_python | None |
license | MIT |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# flick_paymentSDK 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
1. **Register on Flick:**
Sign up at [Flick](https://login.merchant.getflick.co/getstarted) to obtain your API keys (`secret_key` and `public_key`).
2. **Installation:**
Install the package via `pip`:
```bash
pip install flick_paymentsdk
```
Initialization: Create an instance of the flick_payment class using your secret_key.
Usage
Initialize the SDK
```python
from flick_paymentsdk.sdk import flick_payment
# Replace with your actual secret key
secret_key = "your_secret_key"
flick_payment = flick_payment(secret_key)
Checkout
Initiate a checkout process:
```
```python
checkout_payload = {
"amount": "1000",
"Phoneno": "1234567890",
"currency_collected": "NGN",
"currency_settled": "USD",
"email": "example@example.com",
"redirectUrl": "https://example.com/redirect",
"webhookUrl": "https://example.com/webhook",
}
response = flick_payment.flickCheckOut(checkout_payload)
print(response)
Bank List Retrieval
Retrieve a list of supported banks:
```
```python
response = flick_payment.flickBankListSdk()
print(response)
Bank Name Inquiry
Perform a bank name inquiry:
```
```python
bank_name_payload = {
"account_number": "1234567890",
"bank_code": "001"
}
response = flick_payment.flickBankNameInquirySdk(bank_name_payload)
print(response)
```
Payout Initialization
Initiate a payout:
```python
payout_payload = {
"bank_name": "Example Bank",
"bank_code": "012",
"account_number": "1234567890",
"amount": "1000",
"narration": "Payment for services",
"currency": "NGN",
"beneficiary_name": "John Doe",
}
response = flick_payment.flickInitiatePayoutSdk(payout_payload)
print(response)
```
Payout Verification
Verify a payout:
```python
transaction_id = "1234567890"
response = flick_payment.flickVerifyPayoutSdk(transaction_id)
print(response)
```
Identity Verification
Perform various identity verifications:
```python
# BVN Verification
response = flick_payment.flickIdentityBvnSdk({"bvn": "12345678901"})
print(response)
# NIN Verification
response = flick_payment.flickIdentityNinSdk({"nin": "12345678901"})
print(response)
# CAC Verification (Basic)
response = flick_payment.flickIdentityCacBasicSdk({"rc_number": "123456"})
print(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.
```
Raw data
{
"_id": null,
"home_page": "https://merchant.getflick.co/",
"name": "dthriz",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "Qraba inc",
"author_email": "kingsley@getflick.app",
"download_url": "https://files.pythonhosted.org/packages/77/72/b34413d1de82df33dc1da4fca6f37cc7afda5bf5223cea3635953ea63199/dthriz-0.0.7.tar.gz",
"platform": null,
"description": "# flick_paymentSDK PYTHON\n\nflick_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.\n\n## Features\n\n- **Checkout:** Collect payments easily with various options.\n- **Banking:** Retrieve bank lists, perform name inquiries, and manage payouts.\n- **Identity Verification:** Verify BVN, NIN, CAC, and more.\n- **Secure SDK:** Handles multi-factor authentication, credential validation, and error handling.\n\n---\n\n## Getting Started\n\n1. **Register on Flick:**\n Sign up at [Flick](https://login.merchant.getflick.co/getstarted) to obtain your API keys (`secret_key` and `public_key`).\n\n2. **Installation:**\n Install the package via `pip`:\n\n ```bash\n pip install flick_paymentsdk\n ```\n\nInitialization: Create an instance of the flick_payment class using your secret_key.\n\nUsage\nInitialize the SDK\n\n```python\n\nfrom flick_paymentsdk.sdk import flick_payment\n\n# Replace with your actual secret key\nsecret_key = \"your_secret_key\"\nflick_payment = flick_payment(secret_key)\nCheckout\nInitiate a checkout process:\n```\n\n```python\n\ncheckout_payload = {\n \"amount\": \"1000\",\n \"Phoneno\": \"1234567890\",\n \"currency_collected\": \"NGN\",\n \"currency_settled\": \"USD\",\n \"email\": \"example@example.com\",\n \"redirectUrl\": \"https://example.com/redirect\",\n \"webhookUrl\": \"https://example.com/webhook\",\n}\nresponse = flick_payment.flickCheckOut(checkout_payload)\nprint(response)\nBank List Retrieval\nRetrieve a list of supported banks:\n```\n\n```python\n\nresponse = flick_payment.flickBankListSdk()\nprint(response)\nBank Name Inquiry\nPerform a bank name inquiry:\n```\n\n```python\n\nbank_name_payload = {\n \"account_number\": \"1234567890\",\n \"bank_code\": \"001\"\n}\nresponse = flick_payment.flickBankNameInquirySdk(bank_name_payload)\nprint(response)\n```\n\nPayout Initialization\nInitiate a payout:\n\n```python\n\npayout_payload = {\n \"bank_name\": \"Example Bank\",\n \"bank_code\": \"012\",\n \"account_number\": \"1234567890\",\n \"amount\": \"1000\",\n \"narration\": \"Payment for services\",\n \"currency\": \"NGN\",\n \"beneficiary_name\": \"John Doe\",\n}\nresponse = flick_payment.flickInitiatePayoutSdk(payout_payload)\nprint(response)\n```\n\nPayout Verification\nVerify a payout:\n\n```python\n\ntransaction_id = \"1234567890\"\nresponse = flick_payment.flickVerifyPayoutSdk(transaction_id)\nprint(response)\n```\n\nIdentity Verification\nPerform various identity verifications:\n\n```python\n\n# BVN Verification\nresponse = flick_payment.flickIdentityBvnSdk({\"bvn\": \"12345678901\"})\nprint(response)\n\n# NIN Verification\nresponse = flick_payment.flickIdentityNinSdk({\"nin\": \"12345678901\"})\nprint(response)\n\n# CAC Verification (Basic)\nresponse = flick_payment.flickIdentityCacBasicSdk({\"rc_number\": \"123456\"})\nprint(response)\n\n# Best Practices\nAlways handle exceptions raised by API calls.\nStore your secret_key securely to prevent unauthorized access.\n# Support\nIf you need help with flick_paymentSDK or your Flick integration, reach out to support@getflick.app or join our Slack channel.\n\nLicense\nThis project is licensed under the MIT License.\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Flick Python SDKs contains FlickPay inflow and outflow solutions",
"version": "0.0.7",
"project_urls": {
"Homepage": "https://merchant.getflick.co/"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d493135ede0876bce28c2e67acd71c804d7ecad55e185724efcc938cb681a86b",
"md5": "d35b105f4a08bf358fd1f86eb5a78cb0",
"sha256": "d1fd612f2bdafe66a8987eddfbbfdc0964a03301f547179528cae5ccafe4ec4b"
},
"downloads": -1,
"filename": "dthriz-0.0.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d35b105f4a08bf358fd1f86eb5a78cb0",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 3149,
"upload_time": "2024-11-27T17:05:15",
"upload_time_iso_8601": "2024-11-27T17:05:15.846464Z",
"url": "https://files.pythonhosted.org/packages/d4/93/135ede0876bce28c2e67acd71c804d7ecad55e185724efcc938cb681a86b/dthriz-0.0.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7772b34413d1de82df33dc1da4fca6f37cc7afda5bf5223cea3635953ea63199",
"md5": "4aa1547e1b264be7ffcd66b41f3a7eeb",
"sha256": "feb8942c75a52c693f3ffb49d1b19b87ed69bb34038c0713c26ebb267f9d677a"
},
"downloads": -1,
"filename": "dthriz-0.0.7.tar.gz",
"has_sig": false,
"md5_digest": "4aa1547e1b264be7ffcd66b41f3a7eeb",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3487,
"upload_time": "2024-11-27T17:05:17",
"upload_time_iso_8601": "2024-11-27T17:05:17.925418Z",
"url": "https://files.pythonhosted.org/packages/77/72/b34413d1de82df33dc1da4fca6f37cc7afda5bf5223cea3635953ea63199/dthriz-0.0.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-27 17:05:17",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "dthriz"
}