Download the PHP package mcire/paytech without Composer

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

PayTech Package for Laravel

This package provides an easy integration of the PayTech payment gateway into your Laravel applications.

Laravel Logo

Laravel Logo

Installation

🧿 Prerequisite

You have already created a controller for payments, an associated route and a view containing the product purchase form.

⬇ Install now

The package discovery is enabled by default in Laravel 5.5+. If you're using an earlier version, manually add the service provider and facade in config/app.php:

Configuration

Publish the configuration file:

Add the following variables to your .env file:

Tips for configuring PayTech's IPN locally

PayTech requires the callback route (IPN) to be accessible via HTTPS. This can pose a challenge during local development.

If you don't need to handle IPN calls :

simply configure the IPN URL as follows

If you need to handle IPN calls locally:

Usage

Initiating a Payment (Put it inside your payment controller)

Available Parameters

Parameter Type Description Required
item_name string Product name Yes
item_price integer Price in cents Yes
currency string Currency (XOF, EUR, etc.) Yes
ref_command string Unique order reference Yes
command_name string Order description Yes

Handling Returns

The package automatically handles three types of returns:

  1. IPN (Instant Payment Notification)

    • URL configured in PAYTECH_IPN_URL
    • Server-to-server notification from PayTech
    • Used to update order status
  2. Success Page

    • URL configured in PAYTECH_SUCCESS_URL
    • Redirection after successful payment
  3. Cancel Page
    • URL configured in PAYTECH_CANCEL_URL
    • Redirection after payment cancellation

Environments

The package supports two environments:

Configure the environment via the PAYTECH_ENV variable in your .env file.

Security

Common Error Codes

Code Description Solution
400 Invalid parameters Check the sent parameters
401 Authentication failed Verify your API keys
500 Server error Contact PayTech support

Support

For any questions or issues:

License

This package is open-sourced software licensed under the MIT license. See the LICENSE file for more details. This package provides an easy integration of the PayTech payment gateway into your Laravel applications.


All versions of paytech with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
guzzlehttp/guzzle Version ^7.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 mcire/paytech contains the following files

Loading the files please wait ....