Download the PHP package transact-pro/gate without Composer

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

TransactPRO PHP integration

Build Status Coverage Status Total Downloads Latest Stable Version License

Library provide ability to make requests to TransactPRO Gateway API.
Library are supported by me, and not by TransactPRO. So, submit all requests, issues and questions directly here (on GitHub). Library provided as is.
You must adopt library for your projects by yourselves, I only provide basic functionality to make requests.

Installation

Composer

Recommended way of installation is through composer.
Run command line command composer require transact-pro/gate or add to your composer.json:

And then install with:

Manual

You can manually download library and use autoloader.

Usage

Create gate client

Field Mandatory Type Description
apiUrl yes string Api URL. Can be aquired via Integration manual.
guid yes string Merchant GUID.
pwd yes string Unecrypted password. It will be encrypted by client.
verifySSL no bool Default: . Must be set to for test environment

Basic client

Client with disabled SSL check.

Actions

GateClient instance provide number of actions, such as 'charge' or 'status_request'. All data passed into action are validated and if mandatory field missed, then exception will be raised. Please check integration manual, to get more info about required data for each action.

Init

Charge

Init DMS

Make hold

Charge hold

Cancel DMS

Cancel request

Refund

Status request

Init P2P transactions

Do P2P transactions

Init B2P transactions

Do B2P transactions

Init Credit transactions

Do Credit transactions

Init A2A transactions

Do A2A transactions

Init store card for further SMS transactions without card

Init store card for further Credit transactions without card

Init store card for further P2P transactions without card

Store card for further transactions without card

Initial recurrent transaction (usual, P2P, Credit)

For usual Recurrent use:

For P2P recurrent use:

For Credit recurrent use:

For Credit recurrent use:

Fields in these requests are same, read documetation for details.

Example:

Charge recurrent transaction

For usual Recurrent use:

For P2P recurrent use:

For Credit recurrent use:

For A2A recurrent use:

Example:

Response

Response instance returned as action result.

isSuccess

To check if curl request was successful, you can use method;

getResponseContent

To get raw response you can use .

If request was successful, then API response was returned. If not, then curl_error was returned.

Tests

If you wish to run tests, you need to install development dependencies:

And then run them with:


All versions of gate with dependencies

PHP Build Version
Package Version
No informations.
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 transact-pro/gate contains the following files

Loading the files please wait ....