GithubHelp home page GithubHelp logo

drh97 / laravel-tanda Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 115 KB

A Laravel package that interfaces with Tanda Payment API.

License: MIT License

PHP 100.00%
php laravel utilities payments billing tanda

laravel-tanda's Introduction

Tanda Api

GitHub TestCI Workflow Github StyleCI Workflow codecov

Latest Stable Version Total Downloads License PHP Version Require

This is a Laravel package that interfaces with Tanda Payments Api. The API enables you to initiate mobile payments, disburse payments to mobile and bank, purchase airtime & bundles* and to pay for utility bills.

Check out their api documentation.

Documentation

Installation

You can install the package via composer:

composer require drh/laravel-tanda

The package will automatically register itself.

You can publish the config file with:

php artisan tanda:install

Getting Started

  • Account

Enables you to check the status of items

  1. Account balance
Account::balance();
  • Utility

Enables purchase of payment of goods and services

  1. Airtime Purchase
Utility::airtimePurchase(0712345678, 100);
  1. Bill Payment
Utility::billPayment(11011011011, 1000, Providers::KPLC_PREPAID);
  1. Transaction status
Utility::requestStatus("...");
  • Payments

Coming soon


NOTE: Phone Number Validation

The phone validator was built using regex and the latest allocation of prefixes by Communication authority of Kenya (Apr, 2021). Check the docs to see the pdf listing with allocations.

Testing

You can run the tests with:

composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.