API MONEY FUSION PAYEMENT PYTHON
Elle permet d'intéragir avec l'API de paiement de MoneyFusion. Elle facilite la création et la récupération des paiements via des requêtes HTTP.
Installation
vous pourrez l'installer avec :
pip install apiMoneyFusion
Utilisation
Importation
from apiMoneyFusion import PaymentClient
Initialisation du client
client = PaymentClient(api_key_url="YOUR_API_URL")
Créer un paiement
payment = client.create_payment(
total_price="10000",
articles=[{"name": "Article 1", "price": "5000", "quantity": 1}],
numero_send="0101010101",
nom_client="assemienDev",
user_id=1,
order_id=123,
return_url="https://votre-domaine.com/callback",
webhook_url="https://your-domain.com/my-webhook-url",
)
print(payment)
NB: webhook_url doit accepter les requêtes POST
Réponse attendue :
{
"statut": true,
"token": "f5EJ33JYmxqosi8BvaEt",
"message": "paiement en cours",
"url": "https://www.pay.moneyfusion.net/pay/f5EJ33JYmxqosi8BvaEt"
}
Récupérer un paiement
payment_info = client.get_payment("8L5teSc5TaIkP3ds9Dlx")
print(payment_info)
Réponse attendue :
{
"statut": true,
"data": {
"_id": "6748d365967cb4766fdd1616",
"tokenPay": "8L5teSc5TaIkP3ds9Dlx",
"numeroSend": "None",
"nomclient": "assemienDev",
"personal_Info": [{"userId": 1, "orderId": 123}],
"numeroTransaction": "",
"Montant": 475,
"frais": 25,
"statut": "paid",
"moyen": "card",
"return_url": "https://votre-domaine.com/callback",
"createdAt": "2024-11-28T20:32:37.037Z"
},
"message": "details paiement"
}
Contributions
Les contributions sont les bienvenues ! N'hésitez pas à proposer des améliorations ou signaler des bugs en ouvrant une issue sur GitHub.
Licence
Ce projet est sous licence MIT. Voir le fichier LICENSE pour plus d'informations.
Metadata
Release files for apiMoneyFusion 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| apimoneyfusion-0.1.4.tar.gz | 3.7 kB | Without provenance | Details for apimoneyfusion-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| apimoneyfusion-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for apimoneyfusion-0.1.4-py3-none-any.whl |
Total release size: 8.0 kB
Release files / apimoneyfusion-0.1.4.tar.gz
| Download URL | apimoneyfusion-0.1.4.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
05a0a138d58d4839ef4f0db96dd7aff3b7c1ca0ce0395628fdd7cd0c931bb61e
|
|
BLAKE2b-256 checksum How to use checksums |
13fa4661d88700d095036aafcc9668ffe099d50737d2dd7751a608c1f87bef12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.1
|
Release files / apimoneyfusion-0.1.4-py3-none-any.whl
| Download URL | apimoneyfusion-0.1.4-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d4b54cda393f903eeff975a37563c176b5d4730c03034615cee814ceec95957e
|
|
BLAKE2b-256 checksum How to use checksums |
edb95eca3822cc3b7c1bb64efab531665ba65757a6ad059ece91c637f5ef5015
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.1
|
Security for apiMoneyFusion 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.