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.
Informations about the package gate
TransactPRO PHP integration
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:
- initRecurrent
For P2P recurrent use:
- initRecurrentCredit
For Credit recurrent use:
- initRecurrentP2P
For Credit recurrent use:
- initRecurrentA2A
Fields in these requests are same, read documetation for details.
Example:
Charge recurrent transaction
For usual Recurrent use:
- chargeRecurrent
For P2P recurrent use:
- doRecurrentCredit
For Credit recurrent use:
- doRecurrentP2P
For A2A recurrent use:
- doRecurrentA2A
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: