Download the PHP package mitchdav/st-george-ipg-laravel without Composer

On this page you can find all versions of the php package mitchdav/st-george-ipg-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 st-george-ipg-laravel

St.George IPG Client

Latest Stable Version Total Downloads License

A Laravel service provider for the St.George Internet Payment Gateway.

Please review the mitchdav/st-george-ipg package readme for installation of the base package.

Installation

composer require mitchdav/st-george-ipg-laravel

Once the library is installed, add the following service provider to your file:

You can also add the facade if required:

You can then export the config file with the following command:

php artisan vendor:publish --provider="StGeorgeIPG\Laravel\Provider"

Configuration

You first need to define the following environment variable in your file:

IPG_CLIENT_ID=

Depending on whether you have an authentication token set (required for the WebService provider, but only required if already set in the Merchant Administration Console for the Extension provider):

IPG_AUTHENTICATION_TOKEN=

You can set the system to use the test mode so that all transactions will go to the St.George IPG test server:

IPG_TEST=TRUE

If you are using the Extension provider, you'll need to define your certificate password, and optionally the certificate path, log file and the debug setting:

IPG_CERTIFICATE_PASSWORD=
IPG_CERTIFICATE_PATH=
IPG_LOG_FILE=
IPG_DEBUG=TRUE

Both and are set to suitable defaults so you can leave these empty if you wish.

Finally, review or edit the file, which reads the environment variables and populates the configuration for the package.

If you wish to use the Extension provider instead, change the value to .

Usage

The package provides a Client and Facade which are both configured using the values from the file.

You can then use the client in the same way as the mitchdav/st-george-ipg package.

Charging the Customer (purchase)

Others

Check the usage guide on the mitchdav/st-george-ipg package.

Commands

ipg:test-purchase {provider?} {cert?}

This command allows you to test your connection to the St.George IPG server by performing a test purchase. The command will instruct the provider to use the test server (regardless of your configuration), so it is safe to use in a live environment.

php artisan ipg:test-purchase

ipg:update-certificate {path?} {url?} {--skip-test}

This command allows you to update the certificate file used by the Extension provider to connect to the St.George IPG server. The command will download the latest certificate, test it, and if successful it will save it to the configured or provided path.

php artisan ipg:update-certificate

Testing

The library is currently not formally tested, however it is known to work with Laravel 5.4 projects. I aim to implement testing soon, however if you discover any problems please submit an issue and I will get back to you as soon as possible.


All versions of st-george-ipg-laravel with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ^5.4
illuminate/console Version ^5.4
nesbot/carbon Version ^1.22
mitchdav/st-george-ipg Version ^1.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 mitchdav/st-george-ipg-laravel contains the following files

Loading the files please wait ....