PHPackages                             undostres-com-mx/superapp\_sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. undostres-com-mx/superapp\_sdk

ActiveLibrary

undostres-com-mx/superapp\_sdk
==============================

SDK for undostres superapp.

2.0(2y ago)01341proprietaryPHPPHP &gt;=7.1

Since Jul 25Pushed 2y agoCompare

[ Source](https://github.com/undostres-com-mx/superapp_sdk)[ Packagist](https://packagist.org/packages/undostres-com-mx/superapp_sdk)[ RSS](/packages/undostres-com-mx-superapp-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (1)Versions (9)Used By (1)

SuperApp SDK
============

[](#superapp-sdk)

Composer account
----------------

[](#composer-account)

The composer account used was , for troubleshooting please contact.

---

Composer installation
---------------------

[](#composer-installation)

Composer is needed, if missing do:

```
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php --install-dir=/usr/local/bin --filename=composer
php -r "unlink('composer-setup.php');"

```

---

Installation
------------

[](#installation)

If composer.json is present and has the package in the requirement list do:

```
composer install

```

Otherwise, use the require instruction to add or create a composer.json

```
composer require undostres-com-mx/superapp_sdk

```

---

Update
------

[](#update)

To update this package, inside the composer.json folder do:

```
composer update

```

---

Usage
-----

[](#usage)

The use of composer requires the usage of `require_once('/vendor/autoload.php');`

Import the SDK using `use UDT\SDK\SASDK;`

Initialize the static class `SASDK::init(hashKey, server);`

On SASDK instance you can do:

- encryptSDK($data) : (Input: Array of data, Output: String)

    - Encrypt string with 3des algorithm.
- decryptSDK($data, $decode) : (Input: String, Output: String or object)

    - Decrypt string with 3des algorithm.
- decryptUDT($data) : (Input: String, Output: String)

    - Decrypt string with UDT algorithm.
- validateRequestHeaders($apiKey, $apiToken) : (Input: Data on received api headers, Output: Bool)

    - Check api/token to see if request is authentic.
- formatMoney($money) : (Input: String or numeric, Output: Float with udt standards)

    - Gives the standard UDT format to money, decimal separated by dot, no comma.
- createPayment($json) : (Input: Payment JSON (See Test.php), Output: Object)

    - Create an order and retrieve payment url.
- cancelOrder($paymentId) : (Input: Payment id to cancel, Output: Object)

    - Cancel a pending order on UDT.
- refundOrder($paymentId, $transactionId, $value) : (Input: Payment id, transaction id and value to refund, Output: Object)

    - Refund a paid order on UDT.

---

Key utils
---------

[](#key-utils)

Do the following on project root folder to use the key utilities:

- Create hash key.
- Read hash key (Given by UDT).
- Read udt hash (User data encoded on url).

```
php .\Utils\KeyUtils.php

```

---

Local testing
-------------

[](#local-testing)

To make test calls it's needed to have a ssl certificate, to do so download the certificate and update your **php.ini** with yout path like this:

```
[curl]
curl.cainfo="C:/php/ssl/cacert.pem"
openssl.cafile="C:/php/ssl/cacert.pem"

```

The certificate can be downloaded [here.](http://curl.haxx.se/ca/cacert.pem)

Do the following on project root folder to open the testing utilities:

```
php .\Utils\Test.php

```

Then you can make successful calls.

Keep in mind that to make a payment you need a **return** and **callback** api. If you don't add it to the request the payment is always going to fail.

---

Authors
-------

[](#authors)

- Carlos Miranda
- Adrian Garcia

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~59 days

Recently: every ~95 days

Total

8

Last Release

969d ago

Major Versions

v0.2 → v1.0.02022-08-26

v1.0.3 → 2.02023-09-13

PHP version history (2 changes)v0.1PHP &gt;=7.0

v1.0.0PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/15f30987fc22d802c21e0f8aa1282ba691a5840367550f0b414ac8abe0cbaed6?d=identicon)[CarlosAMS123](/maintainers/CarlosAMS123)

---

Top Contributors

[![IvanMellado](https://avatars.githubusercontent.com/u/100148811?v=4)](https://github.com/IvanMellado "IvanMellado (4 commits)")[![JCharlesAN](https://avatars.githubusercontent.com/u/66434640?v=4)](https://github.com/JCharlesAN "JCharlesAN (2 commits)")[![juanmavaldez123](https://avatars.githubusercontent.com/u/66433816?v=4)](https://github.com/juanmavaldez123 "juanmavaldez123 (1 commits)")

### Embed Badge

![Health badge](/badges/undostres-com-mx-superapp-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/undostres-com-mx-superapp-sdk/health.svg)](https://phpackages.com/packages/undostres-com-mx-superapp-sdk)
```

###  Alternatives

[hotmeteor/spectator

Testing helpers for your OpenAPI spec

3021.4M1](/packages/hotmeteor-spectator)[mcp/sdk

Model Context Protocol SDK for Client and Server applications in PHP

1.4k423.9k30](/packages/mcp-sdk)[paragonie/csp-builder

Easily add and update Content-Security-Policy headers for your project

5412.8M18](/packages/paragonie-csp-builder)[akeneo/pim-community-dev

Akeneo PIM, the future of catalog management is open!

1.0k614.1k79](/packages/akeneo-pim-community-dev)[ramsey/conventional-commits

A PHP library for creating and validating commit messages according to the Conventional Commits specification. Includes a CaptainHook action!

1931.2M121](/packages/ramsey-conventional-commits)[php-mcp/server

PHP SDK for building Model Context Protocol (MCP) servers - Create MCP tools, resources, and prompts

828280.5k25](/packages/php-mcp-server)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
