Download the PHP package orkhanahmadov/laravel-golden-pay without Composer

On this page you can find all versions of the php package orkhanahmadov/laravel-golden-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 laravel-golden-pay

WARNING! This package is not maintained anymore!

Instead use orkhanahmadov/laravel-goldenpay package for full-feature Goldenpay Laravel integration or orkhanahmadov/goldenpay for standalone Goldenpay PHP library.

Laravel GoldenPay package

This package built for receiving payments with Azerbaijani payment processing service GoldenPay.

Installation

Run Composer command:

Add this line to your provider list (app/config.app):

Add this line to your aliases list (app/config.app):

Add following lines to your .env file and fill their values:

Lastly you need to migrate required tables to database with artisan command:

Initializing payment

To initialize payment you need to call init method. Method accepts array as its only parameter. Array must have:

Method will return unique payment URL. Use that url to redirect user to payment page.

All payment processing is done GoldenPay's side. Once user finishes payment GoldenPay's processing center will redirect user to one of the callback URLs depending on payment result. Package will handle payment result, insert it into database table set session data will payment result, and redirect user to GOLDEN_PAY_REDIRECT_ROUTE route. Session data will contain:

Handling unfinished payments

Usually when user is done on payment page result will be send to callback URL and result will be handled. But there's a chance that for some reason callback functions won't get result about payment. Like when website is down, or in maintenance mode or user leaves payment page without finishing payment. In cases like these those unfinished payments need to be checked manually. If you have already enabled Cron for Laravel, package will check statuses for unfinished payments automatically. Learn more about how to enable Cron for Laravel here

Config

You can dump config files to your root config directory with artisan command:

This command will create goldenpay folder inside your root config directory and dump all config files.

License

MIT

Todo


All versions of laravel-golden-pay with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.4
guzzlehttp/guzzle Version ^6.2
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 orkhanahmadov/laravel-golden-pay contains the following files

Loading the files please wait ....