Download the PHP package shengamo/tumeny-pay without Composer

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

Tumeny Pay

Latest Version on Packagist Total Downloads

A Laravel Package for integrating with Tumeny Pay.

This Laravel package integrates Tumeny Pay as a payment gateway into your Laravel application.

Version Compatibility

Laravel Version Package Version
Laravel 11.x + 2.x
Laravel 10.x 1.x
Laravel 9.x 1.x

Important: For Laravel 11 applications, you must use version 2.0 or above of this package due to changes in Laravel's caching implementation. For Laravel 10 and below, use version 1.x.

To install a specific version:

Installation

  1. Install the package via Composer:

  2. Publish the package migrations:

    The package creates migrations for the shengamo_orders, shengamo_order_statuses and also the team_subscriptions (if it does not already exist). The statuses that are create are:

    • Pending - status 1
    • Success - status 2
    • Failed - status 3
  3. Add the following environment variables to your .env file:

You can find your key and secret from your tumeny account. You need an active account an access to the API Key in order to use this package.

Usage

Payment Request

You can initiate a payment request using the processPayment method provided by the TumenyPay class.

Setup the verification of payments

To automatically verify pending order payments, add the following line to the schedule function in your App\Console\Kernel.php file:

The schedule will check the shengamo_orders table for all orders with a status of pending (1) and send a request to the Tumeny API every minute. If there are no pending transactions, no request will be sent to the Tumeny API.

Events & Listeners

Events are fired when ShengamoOrder is generated and also when the ShengamoOrder has been updated. You could register these events in the EventServiceProvider. If you would like to handle an action, for example, if you would like to add a subscription if the order is successful, you could create an event listener that listens to the ShengamoOrderCreated Event.

For example, after creating a AddSubscriptionListener Listener class, the code below would handle subscription if order is successful.

Add the events and listener in your App\Providers\EventServiceProvider like the example below.

Manually firing the verification

In order to manually verify all the pending transactions in your shengamo_orders table, you can ran the artisan command.

Testing

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

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


All versions of tumeny-pay with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2|^8.4
illuminate/support Version ~12
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 shengamo/tumeny-pay contains the following files

Loading the files please wait ...