Download the PHP package melogail/telr-laravel without Composer

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

Laravel Telr Payment Gateway

Latest Version on Packagist [GitHub Tests Action Status]() GitHub Code Style Action Status Total Downloads

Laravel package to make online payments from your website via "Telr" payment gateway.

Installation

You can install the package via composer:

You can publish and run the migrations with:

You can publish the config file with:

This will add the config/telr-laravel.php config file inside your project config folder.

Inside the config/telr-laravel.php config file you will need to add the relative path to success, decline, and cancel page according to your project route.

Add the following code to your .env file and change the values to your payment values.

Add TelrLaravel facade inside your config/app.php file.

Usage

To make payment you need to invoke the TelrLaravel class in your controller.

Use makePayment() method to make payment.

After calling the makePayment() method, then you call for pay() method to perform the payment.

The makePayment(string $order_id, float $amount, string $description) method requires three parameters:

While the pay(<array $params>) method accepts one optional parameter as an array that holds the essential billing information required by the payment gateway. If these parameters are ignored in your system, the payment gateway page will prompt the user to add these information.

The required information is as follows:

Full code example:

For more information about the billing parameters, check the platform documentation here

Confirm Transaction and Update Transaction Status

After setting up payment status path pages inside your config/telr-laravel.php file, you need to create three different views, each for each status (Success, Decline, Cancel).

Inside each view you need to call the setTransactionStatus(Request $request) method on the Telr facade to update the transaction status based on its response return.

Testing Cards

You can use the following cards to test your payment gateway integration.

Card number Type CVV MPI
4000 0000 0000 0002 Visa 123 No
4111 1111 1111 1111 Visa 123 Yes
4444 3333 2222 1111 Visa 123 Yes
4444 4244 4444 4440 Visa 123 Yes
4444 4444 4444 4448 Visa 123 Yes
4012 8888 8888 1881 Visa 123 Yes
5105 1051 0510 5100 Mastercard 123 No
5454 5454 5454 5454 Mastercard 123 Yes
5555 5555 5555 4444 Mastercard 123 Yes
5555 5555 5555 5557 Mastercard 123 Yes
5581 5822 2222 2229 Mastercard 123 Yes
5641 8209 0009 7002 Maestro UK 123 Yes
6767 0957 4000 0005 Solo 123 No
3434 343434 34343 American Express 1234 No
3566 0020 2014 0006 JCB 123 No
3111 1111 1111 1111 MADA 123 No

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of telr-laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
guzzlehttp/guzzle Version ^7.5
illuminate/contracts Version ^10.0
spatie/laravel-package-tools Version ^1.14.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 melogail/telr-laravel contains the following files

Loading the files please wait ....