Download the PHP package elshaden/laravel-tlync without Composer

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

Laravel SKD for Tlync Payment Gateway

From Tadawul Digital Solutions Provider , (TDSP)

Latest Version on Packagist Total Downloads

Overview

This Package is a Laravel SDK for Tlync Payment gateway you can read more about Tlync API here Tlync API Documentation

To use this package you must have an account on Tlync and have your API Key and API Secret

You Also need to create a temporary table in your database to store the new orders before sending them to Tlync This will help in making sure that any completed and paid orders are not sent again to Tlync. and also to make sure that Tlync will only receive unique orders.

How it works

  1. Customer places and order on your website, or cart
  2. You create a new order in your temporary table in data database
  3. You send the order to Tlync as will be explained below
  4. Tlync will send a callback to your website with the order status
  5. if the order is paid, you can now create the order in your database and send the customer to the success page
  6. and delete the temporary order from your temporary table or mark it as paid
  7. if the order is not paid, you can send the customer to the failed page and delete the order from your temporary table

Installation

You can install the package via composer:

You must publish the config file with:

This is the contents of the published config file:

 *    public function confirm($order, $request){
 *    // Change order from temporary to orders and deliver the order.
 *    }
 * 

And Also publishes the Hashids file, if you already have that, please add the custom connections to your file The hashids config is responsible for providing a hashed id for the temporary order id, so the customer will not see the real order id

Usage

Initiate Payment

Initiate Payment Response and Redirect

Success Response

if the initiate payment is successful, you will get a response in array

You should Redirect the customer to the url provided in the response

if the initiate payment is not successful, you will get a response in array

Call Back

This is when Tlync sends a call back to your server Backend with the payment status The route set in the config file will receive the POST call back and will handle it in the Tlync Controller

The verification of the call back is done by Tlync Callback Method, so you do not need to worry about that.

When all is done this package will call the class you set up in the config file

passing to it the Parameters you sent to the Initiate and the Tlync Response

To learn more about the Tlync Response please check the Tlync Documentation

You will need to handel the call back in your own class and method, and do what ever you want with it Normally if success you will need to create the order in your database and send the customer to the success page and if failed you will need to send the customer to the failed page

You can create your own class and method to handle the call back, and add it to the config file

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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


All versions of laravel-tlync with dependencies

PHP Build Version
Package Version
Requires spatie/laravel-package-tools Version ^1.14.0
illuminate/contracts Version ^9.0|^10.0|^11.0
hashids/hashids Version ^4.1|^5.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 elshaden/laravel-tlync contains the following files

Loading the files please wait ....