Download the PHP package kassacom/php-sdk without Composer

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

Kassa.com PHP SDK

Latest Stable Version Total Downloads Latest Unstable Version

Documentation: https://kassa.com/help/

Requirements

PHP 5.5 and later.

Dependencies

The bindings require the following extensions in order to work properly:

Optionally

Composer

You can install the lib via Composer. Run the following command:

To use the bindings, use Composer's autoload:

If you use Composer, these dependencies should be handled automatically.

Getting Started

We recommend using the GuzzleHttp Client

Init client

All requests are processed in similar steps:

  1. Create request instance of KassaCom\SDK\Model\Request\AbstractRequest
  2. Request serialization
  3. Sending a request to the server
  4. You have a response object instance of KassaCom\SDK\Model\Response\AbstractResponse or throws exception if request fail

All requests are creating by suitable objects or can be created on the basis of arrays, integers and strings

Create payment

Creating request with object

or you can create request with array

Process payment

Creating request with object

or you can create request with array

Capture payment

Creating request with object

or you can create request with token

Get payment info

Creating request with object

or you can create request with token

Cancel payment

Creating request with object

or you can create request with token

Create payout

Creating request with object

or you can create request with array

Get payout info

Creating request with object

or you can create request with array

or create by id

Payments report

Download report file

Payouts report

Download report file

Exceptions

Processing notification from server

This code is responsible for processing the payment result. You need to create handler, make it available on URL in your application and specify the URL in the project settings in kassa.com. This handler will be called after the user makes a payment using the form on kassa.com

You can use manual response to server:

If you use a proxy server, you can skip the IP check

Custom Api Transport

You can create your own api transport by extending KassaCom\SDK\Transport\AbstractApiTransport


All versions of php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5
ext-curl Version *
ext-json Version *
ext-mbstring Version *
psr/log Version ^1.0|^2.0|^3.0
guzzlehttp/psr7 Version ^1.0|^2.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 kassacom/php-sdk contains the following files

Loading the files please wait ....