GithubHelp home page GithubHelp logo

zaincash-sdk's Introduction

Contributors Forks Stargazers Issues MIT License LinkedIn


AlhasanIQ/ZainCashSDK

AN Unofficial PHP SDK for ZainCash Iraq
Examples · Report a Bug · Request Feature

Table of Contents

About The Project

This is an Unofficial PHP (Composer & PSR Compatible) SDK to integrate ZainCash Iraq with php applications.

Motive:

  • The Official SDK is un-documented.
  • The Official SDK is not Object Oriented (imperative).
  • The Official SDK has some bad practices and 0 encapsulation of logic.

Important Note

Most of the code here is not properly tested and hasn't been touched since i worked at ZainCash in 2015-2016.

Kindly, inspect the code closely and make sure it fits your needs.

The code is provided as-is and no guarantees are given regarding functionality/security.

While this project started when i used to work at ZainCash (2015-2016), I wrote all of this code on my own spare time.

Installation

While the package is not suited for production usage at its current stage, and is mainly intended for educational purposes (for now), below is how you can install it to an existing composer project:

Modify your composer.json to add a repositories source and a require statement:

{
    ...

	"repositories": [
		{
			"type": "vcs",
			"url": "https://github.com/alhasaniq/zaincash-sdk.git"
		}
	],

	"require": {
		"alhasaniq/zaincash-sdk": "dev-master"
	}
}

Usage

For Usage Examples, kindly refer to the examples folder which includes 2 examples of the 2 main endpoints needed:

  • An endpoint to initiate the transaction (charge the user), which redirects users to zaincash to finish the payment.
  • Another endpoint to capture the transaction status and info, after being redirected back to your application (from zaincash).

Contributing

The project is at a hobbyist-project state, where it is not properly tested/updated.

If you use this on production, your feedback is highly appreciated.

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Alhasan A. AL-Nasiry - @alhasaniq

Project Link: https://github.com/alhasaniq/zaincash-sdk

zaincash-sdk's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

zaincash-sdk's Issues

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.