Python

🪢 Flick Python SDKs contains FlickPay inflow and outflow solutions

Project description

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

Step 1: Register on Flick: Sign up at Flick to obtain your API keys (secret_key and public_key).

Step 2: Install the package via pip:



pip install flickpaysdk(latest version)
pip install dataclasses 
pip install requests

Step 3: Initialize the SDK with your secret key:

Create an instance of the flick_payment class using your secret_key.



import requests
from flickpaysdk.flick import FlickpaySDK, checkOutRequest

# Replace with your actual secret key
sdk = FlickpaySDK(secret_key="your_secret_key")

Step 4: For Checkout charge request

Initiate a checkout process



checkout_payload = checkOutRequest(
    amount = "1000",
    Phoneno = "1234567890",
    currency_collected = "NGN",
    currency_settled = "USD",
    email = "[email protected]",
    redirectUrl = "https://example.com/redirect",
    webhookUrl = "https://example.com/webhook",
)
charge_response = sdk.flickCheckOut(checkout_payload) 
print(charge_response

Best Practices Always handle exceptions raised by API calls. Store your secret_key securely to prevent unauthorized access.