Skip to main content

Flick Python SDKs contains FlickPay inflow and outflow solutions

Project description

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 to obtain your API keys (secret_key and public_key).

  2. Installation: Install the package via pip:

    pip install flick_paymentsdk
    

Initialization: Create an instance of the flick_payment class using your secret_key.

Usage Initialize the SDK

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:
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:
response = flick_payment.flickBankListSdk()
print(response)
Bank Name Inquiry
Perform a bank name inquiry:
bank_name_payload = {
    "account_number": "1234567890",
    "bank_code": "001"
}
response = flick_payment.flickBankNameInquirySdk(bank_name_payload)
print(response)

Payout Initialization Initiate a payout:

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:

transaction_id = "1234567890"
response = flick_payment.flickVerifyPayoutSdk(transaction_id)
print(response)

Identity Verification Perform various identity verifications:

# 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dthriz-0.0.6.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dthriz-0.0.6-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file dthriz-0.0.6.tar.gz.

File metadata

  • Download URL: dthriz-0.0.6.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.1

File hashes

Hashes for dthriz-0.0.6.tar.gz
Algorithm Hash digest
SHA256 fa71168d55d399aa74f284f3699cf368cf2507dd8154795b1064e7cf111b3c71
MD5 731f0196405dba16305e8518aa1056c3
BLAKE2b-256 d94fc16304e5cc756e95e06d0b527a772e6d1e7bb8c5cfa02d60497d6de5c344

See more details on using hashes here.

File details

Details for the file dthriz-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: dthriz-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.1

File hashes

Hashes for dthriz-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d5f553f8981aa34925315837622aa04538203cb991f8bab13bfdffbf02a908b5
MD5 273eb305ad5b09016275ffe77e90a73f
BLAKE2b-256 955fbdafe5c58f25c5858bfbaa4905d22200bf43ba62b47684a7548255805d90

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page