2017 © Pedro Peláez
 

yii2-extension yii2-sep

By this extension you can add SEP gateway to your yii2 project

image

ahmadrezaei/yii2-sep

By this extension you can add SEP gateway to your yii2 project

  • Wednesday, October 25, 2017
  • by ahmadrezaei
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Yii2 Iranian SEP Payment Gateway extension

By this extension you can add SEP gateway to your yii2 project, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist ahmadrezaei/yii2-sep "*"

or add, (*4)

"ahmadrezaei/yii2-sep": "*"

to the require section of your composer.json file., (*5)

Configuring application

After extension is installed you need to setup auth client collection application component:, (*6)

return [
    'components' => [
        'sep' => [
            'class' => 'ahmadrezaei\yii\sep\components\Sep',
            'MerchantID' => 'YOUR-MID',
            'Password' => 'YOUR-PASSWORD',
            'mysql' => true, // If you want to save records in db
        ]
        // ...
    ],
    // ...
];

If you want to save records in database, create migrations:, (*7)

php yii migrate -p=@vendor/ahmadrezaei/yii2-sep/src/migrations 

Usage

For create a payment request:, (*8)

$amount = 1000; // Rial
$callBackUrl = Url::to(['callback'], true); // callback url
Yii::$app->sep->createPayment($amount, $callBackUrl);

For verify payment request:, (*9)

$sep = Yii::$app->sep;
if( $sep->verify() ) {
    // payment is successfull
    $transactionID = $sep->RefNumber;
} else {
    // payment is unsuccessfull
}

The Versions

25/10 2017

dev-master

9999999-dev

By this extension you can add SEP gateway to your yii2 project

  Sources   Download

MIT

The Requires

 

by Ahmad Rezaei

extension payment gateway yii2 sep

25/10 2017

v1.0

1.0.0.0

By this extension you can add SEP gateway to your yii2 project

  Sources   Download

MIT

The Requires

 

by Ahmad Rezaei

extension payment gateway yii2 sep