mobbex / sdk
Mobbex SDK Api Integration Library
Installs: 5 645
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- ext-curl: *
This package is auto-updated.
Last update: 2025-06-22 02:18:18 UTC
README
Install
With Composer
From command line
composer require mobbex/sdk:0.1.0
As a dependency in your project's composer.json
{ "require": { "mobbex/sdk": "0.1.0" } }
By downloading
- Clone/download this repository
- Copy
lib
folder to your project's desired folder.
Specific methods
Return Values
Api returns all values as array
Configure your credentials
- Get your API KEY and ACCESS TOKEN from Mobbex
require_once ('lib/mobbex.php'); try { $mb = new MB('API_KEY', 'ACCESS_TOKEN'); } catch (Exception $e) { echo $e->getMessage() . ' ' . $e->getCode(); }
Methods
Get Clientes Lista
$checkout_data = array( 'total' => 100.5, 'currency' => 'ARS', 'description' => 'Checkout description', 'return_url' => 'https://www.yourstore.com/mobbex-custom-return-url', 'reference' => 'QJYZ1234', 'webhook' => 'https://www.yourstore.com/mobbex-custom-webhook-url', 'redirect' => false, 'test' => true, // True, testing, false, production 'options' => array( 'theme' => array( 'type' => 'light', // dark or light color scheme 'showHeader' => true, 'header' => array( 'name' => 'Your brand name', 'logo' => 'https://www.yourstore.com/store-logo.jpg', // Must be https! ), ), ), ); $result = $mb->mobbex_checkout($checkout_data); print_r($result);
Get Transaction Status
$result = $mb->get_transaction_status('TRANSACTION_ID'); print_r($result);