Download the PHP package dlds/yii2-payment without Composer
On this page you can find all versions of the php package dlds/yii2-payment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dlds/yii2-payment
More information about dlds/yii2-payment
Files in dlds/yii2-payment
Package yii2-payment
Short Description Library to handle payments with Estonian banks
License proprietary
Informations about the package yii2-payment
PaymentHandler extension for Yii2
Library to handle payments with Estonian banks. Main features includes:
- Payment service implemented with the following handlers: IPizza (Swedbank, SEB, LHV, Danske, Krediidipank), Estcard, Nordea
- Object oriented and extensible code, you can easily add custom adapters
- Generates payment forms from transaction objects
- Handles bank post-back requests
This is a very basic "low-level" component for implementing payments. If you also need functionality for shopping baskets and orders, you might want to look at opus-online/yii2-ecom extension.
Installation
Just define the required package in your composer.json
.
Usage
Overwrite PaymentHandlerBase
class and at least the method getConfiguration
. Complement the two configuration files
with your account details and locations of key and certificate files. You can just copy the files from under examples/config
.
Render all payment forms
Customize the payment form
The default implementation uses the widget dlds\payment\widgets\PaymentWidget
. You can override and use this to use custom forms or elements.
And then just render your customized widget instead of the default one (see the widget example above).
Receive return requests from the bank
Added cancelRoute
and getCancelUrl()
to AdapterAbstract to allow different redirecting after cancelling a payment