Download the PHP package donsoft/smartpay without Composer

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

Donsoft SmartPay

Donsoft SmartPay is a Laravel package that intelligently routes payment transactions to the most suitable payment processor based on configurable factors such as transaction cost, reliability, and currency support.

Features

Installation

1. Install the package via Composer:

2. Publish the configuration file:

This will create a config/smartpay.php file where you can configure your payment processors, priorities, and default settings.

3. Add Service Provider (for Laravel versions below 5.5):

If you’re using a Laravel version below 5.5, add the following service provider to your config/app.php:

Configuration

The configuration file smartpay.php allows you to define supported payment processors, the priority of routing factors, and more. Example configuration:

Usage

This is how to use Donsoft SmartPay in your Laravel project:

1. Inject the Payment Router into a Controller

You can inject the PaymentRouter service into your controller and use it to route transactions to the appropriate processor.

2. Example Request to Process Payment:

This will route the payment to the best processor based on the configuration and transaction details.

Extending the Processor

You can add custom payment processors by extending the base processor class (BaseProcessor.php) and adding it to the configuration.

Step 1: Create Your Custom Processor

Step 2: Add Your Processor to the Configuration

Now, CustomProcessor will be included in the intelligent routing when a payment is processed.

Customizing the Configuration

You can adjust the priorities and processors directly in the smartpay.php config file:

Running Tests

The package includes tests to verify its functionality. To run the tests:

Make sure your test classes are under the tests/ directory.


License

This package is open-source software licensed under the MIT license.


Conclusion

This Donsoft SmartPay package provides a flexible, customizable solution for routing payment transactions in Laravel applications. By allowing easy configuration and extensibility, developers can adapt it to suit their specific business logic and requirements.

If you have any questions or need support, feel free to reach out to the author


All versions of smartpay with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3|^8.0|^8.1|^8.2|^8.3
laravel/framework Version ^8.0|^9.0|^10.0|^11.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 donsoft/smartpay contains the following files

Loading the files please wait ....