Official PHP SDK for Ualá Bis API Checkout
SDK PHP oficial de Ualá Bis API Checkout
Install the package with:
composer require uala-bis/ualabis-phpList of all functions:
- createOrder
- getOrder
- getFailedNotifications
Instantiate the Ualá Bis SDK class:
<?php
require_once('../vendor/autoload.php');
use Uala\SDK;
//if you want to test the sdk, set isDev w/ true value. FALSE by default if not specified
$sdk = new SDK('your_username', 'your_client_id', 'your_client_secret_id', true);
$order = $sdk->createOrder(11, 'test', 'https://www.google.com/', 'https://www.google.com/');
$generatedOrder = $sdk->getOrder($order->uuid);
?>We use PHPUnit and Mockoon to run internal mock API:
Install all dependencies from composer.json:
composer installStart mock API server:
npx mockoon-cli start --data ./tests/dataMockTest.jsonor if you want to install it globally:
npm install -g @mockoon/cli
mockoon-cli start --data ./tests/dataMockTest.jsonRun coverage:
composer coverageWe use XDebug for coverage report, is necessary to install it: how to install Xdebug
Instale el paquete con el siguiente comando:
composer require uala-bis/ualabis-phpListado de todas las funciones:
- createOrder
- getOrder
- getFailedNotifications
Instancia la clase de Ualá Bis SDK:
<?php
require_once('../vendor/autoload.php');
use Uala\SDK;
//si queres probar el SDK, configura el valor isDev con valor true. Es false por defecto si no es especificado
$sdk = new SDK('your_username', 'your_client_id', 'your_client_secret_id', true);
$order = $sdk->createOrder(11, 'test', 'https://www.google.com/', 'https://www.google.com/');
$generatedOrder = $sdk->getOrder($order->uuid);
?>Usamos PHPUnit y Mockoon para correr un mock interno de una API:
Instala todas las dependencias de composer.json:
composer installInicia la API mockeada:
npx mockoon-cli start --data ./tests/dataMockTest.jsono si queres instalarlo de forma global:
npm install -g @mockoon/cli
mockoon-cli start --data ./tests/dataMockTest.jsonEjecuta el coverage:
composer coverageUsamos XDebug para los reportes de coverage, es necesario que lo instales: cómo instalar Xdebug
Also, you can show Api Checkout Documentation in https://developers.ualabis.com.ar
