Download the PHP package nordsoftware/yii-paymentmanager without Composer
On this page you can find all versions of the php package nordsoftware/yii-paymentmanager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nordsoftware/yii-paymentmanager
More information about nordsoftware/yii-paymentmanager
Files in nordsoftware/yii-paymentmanager
Package yii-paymentmanager
Short Description Payment manager for the Yii PHP framework.
License BSD-3-Clause
Informations about the package yii-paymentmanager
yii-paymentmanager
Payment manager for the Yii PHP framework.
The goal behind the payment manager is to provide an easy-to-use API for making payments through any payment gateway in Yii applications. It includes a bunch of models that holds unified data for payments that can be used to implement any payment gateway necessary. It leaves a lot of room for implementing the actual payment gateway, because every payment gateways works a bit differently.
Usage
Installation and configuration
The easiest way to install payment manager is to use Composer. Add the following to your composer.json file:
`
Run the following command to download the extension:
Add the following to your application configuration:
Please note that the payment manager does not include any actual payment gateway implementations. For an example implementation see our Paytrail implementation at: http://github.com/nordsoftware/yii-paytrail
If you are not using composer's autoload, then you need to add the following imports to your application configuration:
Please note that you need to change "webroot" to match your own configuration.
Create a transaction
With the payment manager it is easy to create a unified transaction and pay it using the payment gateway of your choice. Below you can find a simple example on how to create a transaction and process it using the payment manager.