Download the PHP package mattdi/telebirr-ussd without Composer

On this page you can find all versions of the php package mattdi/telebirr-ussd. 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 telebirr-ussd

Telebirr USSD

v0.3.1 (Laravel 10/11/12/13 · PHP ^8.1) · A Laravel package for the asynchronous USSD Push / Buy Goods for Customer operation of the Telebirr SOAP payment API.

⚠️ Important: The Telebirr USSD Push flow is asynchronous. The immediate response only confirms that Telebirr accepted your request — it is not a payment confirmation. Only the api:Result callback with ResultCode = 0 confirms a successful payment. Treat callback data as the source of truth.


Features


Installation

Require the package:

Publish the config file:

Environment variables

Add the following to your .env:

Every variable maps directly to a field in the outlined Telebirr spec, so there are no redundant settings — each one corresponds to a different part of the request (Caller, Initiator) or the transport (SOAP timeout/mTLS).


Usage

Initiate a USSD Push / Buy Goods

ResponseCode = 0 in the immediate response means the request was accepted, not that payment succeeded.

Handle the callback

By default the package registers:

Point Telebirr's ResultURL at the publicly reachable URL configured via TELEBIRR_USSD_RESULT_URL.

The callback parses:

A successful result has ResultCode = 0. Listen for the completion event to settle the payment:


Recommended payment lifecycle

Treat the immediate API response and the async callback as separate events:

Persist at least:


Idempotency

The package intentionally does not require a database schema. In your listener, use originatorConversationId, conversationId, and especially transactionId as idempotency keys before applying fulfillment logic.

You can also bind your own IdempotencyChecker. The default implementation is a no-op:


Credentials

The two credential strings shown in the spec's example request are provided by Telebirr when you onboard:

Both are sent verbatim into the SOAP request, so you can paste them straight into your .env.

Security credential provider

The package reads the credential via a small SecurityCredentialProvider contract; the default implementation returns TELEBIRR_USSD_SECURITY_CREDENTIAL. It exists so that, if Telebirr later publishes a getSecurityCredential() algorithm, you can compute the value at runtime instead of storing it statically:


Security & production hardening

Before going to production:

  1. Obtain the official Telebirr credential/security specification.
  2. Use the official production SOAP endpoint.
  3. Use the official production SOAP endpoint over HTTPS; enable mTLS client certificates only if Telebirr requires them.
  4. Restrict and authenticate the callback endpoint per Telebirr's requirements.
  5. Add idempotency using the Telebirr transaction/conversation identifiers.
  6. Never log PINs, security credentials, private keys, or raw authentication secrets.
  7. Verify the payment amount/order before fulfilling goods.
  8. Implement reconciliation/query handling if Telebirr provides it.
  9. Add monitoring and structured audit logs.

Architecture


Changelog

See CHANGELOG.md for version history.


License

MIT


All versions of telebirr-ussd with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
psr/log Version ^3.0
ext-dom Version *
illuminate/support Version ^10.0|^11.0|^12.0|^13.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 mattdi/telebirr-ussd contains the following files

Loading the files please wait ...