Official Python SDK for the Nelsius Developer API
Project description
Nelsius Python SDK
Official Python SDK for the Nelsius Developer API.
Installation
pip install nelsius-pay
Quick Start
from nelsius import Nelsius
# Initialize the client
nelsius = Nelsius('your_secret_key', {
'verify_ssl': False # Set to False for local development
})
# 1. Get available payment methods
methods = nelsius.methods('CM', 'XAF')
print("Available methods:", methods)
# 2. Create a Checkout Session
session = nelsius.checkout.create_session({
'amount': 5000,
'currency': 'XAF',
'reference': 'ORDER_12345',
'return_url': 'https://yoursite.com/success',
'customer': {
'email': 'client@example.com',
'name': 'Jean Dupont'
}
})
if session.get('success'):
print("Checkout URL:", session['data']['checkout_url'])
# 3. Direct Charge (Mobile Money)
charge = nelsius.charge.create({
'amount': 2000,
'currency': 'XAF',
'payment_method': 'orange_money_cm',
'phone': '690000000',
'reference': 'REF_999'
})
print("Charge Result:", charge)
Documentation
For full details on the parameters and responses, visit the official documentation.
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
nelsius_pay-1.0.0.tar.gz
(4.1 kB
view details)
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 nelsius_pay-1.0.0.tar.gz.
File metadata
- Download URL: nelsius_pay-1.0.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be33804a5cb7d4041305bf8ac95d588a885148e0ad89b7a34ae794d08380ca2f
|
|
| MD5 |
f2b20e3503a9d3dedd16db2f907a6911
|
|
| BLAKE2b-256 |
d3d53df564fc0ae1d0673db2e088cb5399716e0242e2a62d4d623fa726197911
|
File details
Details for the file nelsius_pay-1.0.0-py3-none-any.whl.
File metadata
- Download URL: nelsius_pay-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f988d8380131ae27bb35ed3f5f892f40da4b923ce2a1f0e9d41d721fe2ede205
|
|
| MD5 |
72f737ce6dfa8a8431b2308306eb6d8f
|
|
| BLAKE2b-256 |
8759f10f52156d1eaf91f68f43514d08689909030a3eddfb6978f7ee468ed5f4
|