Download the PHP package nita-transfert/sdk without Composer

On this page you can find all versions of the php package nita-transfert/sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sdk

OpenAPIClient-php

APIs partenaires NITA.

Perimetre : endpoints v2 (/api/v2/_**).

Deux couches d'erreurs, a ne pas confondre :

Signature (POST/PUT) : hex(HMAC-SHA256(secret_partenaire, timestamp + \" \" + nonce + \" \" + corps)), portee par X-NT-TIMESTAMP, X-NT-NONCE et X-NT-SIGNATURE. Les SDK officiels la calculent et la posent au niveau transport.

Installation & Usage

Requirements

PHP 7.4 and later. Should also work with PHP 8.0.

Composer

Installation via Composer :

Then run composer install

Manual Installation

Download the files and include autoload.php:

Getting Started

Please follow the installation procedure and then run the following:

Vérifier un callback

Usage serveur uniquement : le SDK exige tous les secrets du partenaire, ne jamais l'embarquer côté client.

NITA signe ses callbacks v2 (POST JSON) avec votre secret HMAC. Vérifiez la signature sur le corps brut, avant tout traitement :

Sans $isNewNonce, un callback valide peut être rejoué pendant la tolérance d'horodatage (300 s par défaut).

Les appels HTTP de NitaClient expirent après 30 s (connexion : 10 s) : options timeoutSeconds et connectTimeoutSeconds de NitaClient::connect.

API Endpoints

All URIs are relative to http://localhost:8584

Class Method HTTP request Description
AchatEnLigneV2Api addAchatEnligne POST /api/v2/nitaServices/achatEnLigne/saveAchatEnLigne Créer un achat en ligne
AchatEnLigneV2Api annulerAchat PUT /api/v2/nitaServices/achatEnLigne/annulerAchat Annuler un achat
AchatEnLigneV2Api checkAchatStatus POST /api/v2/nitaServices/achatEnLigne/checkAchatStatus Vérifier le statut d'un achat
CheckingV2Api checkRequestOperation POST /api/v2/nitaServices/checkStatus/transaction Vérification de l'état d'un envoi
CompteV2Api consulterSoldeCompte GET /api/v2/nitaServices/account/balance Consulter le solde du compte
EnvoiInterPartenaireV2Api calculerFraisEnvoiInterPartenaire POST /api/v2/nitaServices/envoi-inter-partenaire/frais Calcul des frais d'un envoi inter-partenaire (P2P)
EnvoiInterPartenaireV2Api creerEnvoiInterPartenaire POST /api/v2/nitaServices/envoi-inter-partenaire/creation Créer un envoi inter-partenaire (P2P)
LocalitsV2Api getAllActiveVillesListe GET /api/v2/nitaServices/localite/ville Obtenir la liste des villes actives
LocalitsV2Api getAllIndicatifs GET /api/v2/nitaServices/localite/pays Obtenir la liste des indicatifs téléphoniques de tous les pays actifs
MyNitaV2Api checkCompteExistence POST /api/v2/nitaServices/compteMynita/checkCompteExistence Vérifier l'existence d'un compte MyNita
TransactionsV2Api annulePartenaireToWallet POST /api/v2/nitaServices/transaction/AnnulePartenaireToWallet Annulation Partenaire To Wallet (v2)
TransactionsV2Api annulerEnvoiMyNita PUT /api/v2/nitaServices/transaction/annulerEnvoi Annuler un envoi MyNita (v2)
TransactionsV2Api calculerFraisPartenaireToCash POST /api/v2/nitaServices/transaction/partenaireToCash/frais Calcul des frais Partenaire To Cash (P2C)
TransactionsV2Api calculerFraisPartenaireToWallet POST /api/v2/nitaServices/transaction/partenaireToWallet/frais Calcul des frais Partenaire To Wallet (P2W)
TransactionsV2Api getEnvoiToEdit POST /api/v2/nitaServices/transaction/getEnvoiToEdit Récupérer les informations d'un envoi à éditer (v2)
TransactionsV2Api getPartenaireToWallet POST /api/v2/nitaServices/transaction/GetPartenaireToWallet Récupération d'une opération Partenaire To Wallet (v2)
TransactionsV2Api partenaireToCash POST /api/v2/nitaServices/transaction/partenaireToCash Envoi Partenaire To Cash (v2)
TransactionsV2Api partenaireToWallet POST /api/v2/nitaServices/transaction/partenaireToWallet Partenaire To Wallet (v2)
TransactionsV2Api updateEnvoiMyNita PUT /api/v2/nitaServices/transaction/updateEnvoi Modifier un envoi MyNita (v2)

Models

Authorization

Authentication schemes defined for the API:

bearerAuth

ApiKey

Tests

To run the tests, use:

Author

About this package

This PHP package is automatically generated by the OpenAPI Generator project:


All versions of sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
ext-curl Version *
ext-json Version *
ext-mbstring Version *
guzzlehttp/guzzle Version ^7.3
guzzlehttp/psr7 Version ^1.7 || ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package nita-transfert/sdk contains the following files

Loading the files please wait ...