Download the PHP package payomatix/web-sdk without Composer
On this page you can find all versions of the php package payomatix/web-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download payomatix/web-sdk
More information about payomatix/web-sdk
Files in payomatix/web-sdk
Package web-sdk
Short Description Payomatix Web SDK for PHP
License MIT
Homepage https://payomatix.com/
Informations about the package web-sdk
Payomatix PHP SDK
This Payomatix PHP Library provides easy access to Payomatix APIs for php apps. It abstracts the complexity involved in direct integration and allows you to make quick calls to the APIs.
Table of Contents
- Requirements
- Dependencies
- Installation
- Initialization
- Getting Started
- Status
- Custom Request Timeouts
- Debugging Errors
- Terms and Conditions
- License
- References
Requirements
- Payomatix Merchant account with API Keys
- Minimum PHP versions: >= 7.0.0
Dependencies
The bindings require the following extensions in order to work properly:
If you use Composer, these dependencies should be handled automatically.
Installation
Installation via Composer.
To install the package via Composer, run the following command.
To use the bindings, use Composer's autoload:
Initialization
Create a .env file or copy from .env.example
file
Save your SECRET_KEY in the .env
file as PAYOMATIX_SECRET_KEY
Your .env
file should look this.
Getting Started
The SDK provides two methods of making collections
Simple usage for non-seamless payments looks like:
Same way, you can initiate seamless payments like:
Status
You can use the SDK to retrieve the status of transaction using merchant_ref
or order_id
as below:
Custom Request Timeouts
By default PHP cURL request timeouts are set. To modify request timeouts (connect or total, in seconds) you'll need to tell the API client like this.
Debugging Errors
We understand that you may run into some errors while integrating our library. You can contact our developer team for support.
For Authorization
and Validation
error responses, double-check your Secret key. If you get a server
error, kindly engage the team for support.
Terms and Conditions
By using this library, you agree with our Terms and Conditions.
Copyright (c) Payomatix Inc.
License
This SDK is open-sourced software licensed under the MIT license.