2017 © Pedro Peláez
 

library poolport

A PHP library to connect all Iraninan payments gateways

image

poolport/poolport

A PHP library to connect all Iraninan payments gateways

  • Wednesday, April 11, 2018
  • by m-jch
  • Repository
  • 7 Watchers
  • 49 Stars
  • 452 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 15 Forks
  • 7 Open issues
  • 15 Versions
  • 7 % Grown

The README.md

PoolPort

از این پکیج جهت متصل کردن پروژه خود به درگاه‌های بانکی می‌توانید استفاده کنید., (*1)

نصب پکیج

composer require poolport/poolport:~v3

فایل تنظیمات

فایل poolport-sample.php را از کپی کرده و در ریشه پروژه در کنار پوشه vendor قرار دهید و مقادیر آن را بر اساس نیاز خود تغییر دهید., (*2)

  1. اگر میخواید timezone توسط PoolPort تنظیم شود، این مقدار را وارد کنید، در غیر اینصورت این مقدار را خالی رها کنید.
  2. مقدار attempts در soap مشخص کننده تعداد تلاش در زمانی که ارتباط با سرور soap برقرار نمیشود، است.
  3. تنظیمات database برای اتصال به پایگاه داده است. در صورتی که قسمت create فعال (true) باشد، در هر بار استفاده از PoolPort، پکیج چک میکند که آیا جداول پکیج ایجاد شده است یا خیر، در صورتی که موجود نبودند، خود پکیج به صورت خودکار آنها را نصب میکند. پس توجه داشته باشید که در اولین استفاده از پکیج این گزینه را true کنید.
  4. دیگر قسمت‌ها نیز مخصوص هر درگاه است، که در صورت استفاده از هر کدام از آنها، ابتدا تنظیمات آن‌ها را پر کنید.

انتقال کاربر به درگاه

use PoolPort\PoolPort;

$poolPort = new PoolPort(PoolPort::P_MELLAT);
$poolPort->setGlobalCallbackUrl("https://example.com/callback");
$poolPort->setGlobalUserMobile("09122222222");

try {
    $refId = $poolPort
        ->set(1000)
        ->ready()
        ->refId();

    // Your code here

    return $poolPort->redirect();
} catch (Exception $e) {
    echo $e->getMessage();
}

برگشت کاربر از درگاه

use PoolPort\PoolPort;

try {
    $poolPort = new PoolPort;
    $trackingCode = $poolPort->verify()->trackingCode();

    // User payment verified

    $refId = $poolPort->refId();
    $cardNumber = $poolPort->cardNumber();

    // Your code here

} catch (Exception $e) {
    // User payment not verified

    echo $e->getMessage();
}

لیست درگاه ها فعال

ملت - P_MELLAT
ملی - P_SADERAT
زرین پال - P_ZARINPAL
پی‌لاین - P_PAYLINE
جهان پی - P_JAHANPAY
پارسیان - P_PARSIAN
صادرات - P_SADERAT
ایران کیش - P_IRANKISH
سامان - P_SAMAN
پی‌ دات آی آر - P_PAY
جیبیت - P_JIBIT
آپ - P_AP
پی پینگ - P_PAYPING
وندار - P_VANDAR
شبیه ساز پرداخت - P_SIMULATOR

لیست درگاه های تست نشده

پاسارگاد - P_PASARGAD
بیت پی - BitPay
آی دی پی - IDPay

اطلاعات بیشتر

مشاهده کامل مستندات PoolPort, (*3)

مستندات رسمی درگاه‌ها (اگر میخواهید از PoolPort استفاده کنید نیازی به خواندن این مستندات ندارید), (*4)

The Versions

11/04 2018

dev-master

9999999-dev

A PHP library to connect all Iraninan payments gateways

  Sources   Download

MIT

by mohsen shafiei
by ReZa ZaRe

11/04 2018

v3.5.0

3.5.0.0

A PHP library to connect all Iraninan payments gateways

  Sources   Download

MIT

by mohsen shafiei
by ReZa ZaRe

12/03 2018

v3.4.0

3.4.0.0

A PHP library to connect all Iraninan payments gateways

  Sources   Download

MIT

by mohsen shafiei
by ReZa ZaRe

05/12 2017

v3.3.1

3.3.1.0

A PHP library to connect all Iraninan payments gateways

  Sources   Download

MIT

by mohsen shafiei
by ReZa ZaRe

04/12 2017

v3.3.0

3.3.0.0

A PHP library to connect all Iraninan payments gateways

  Sources   Download

MIT

by mohsen shafiei
by ReZa ZaRe

26/08 2017

dev-append_hash_code

dev-append_hash_code

A PHP library to connect all Iraninan payments gateways

  Sources   Download

MIT

by mohsen shafiei
by ReZa ZaRe

21/07 2017

dev-soap-attempts

dev-soap-attempts

A PHP library to connect all Iraninan payments gateways

  Sources   Download

MIT

by mohsen shafiei
by ReZa ZaRe

27/07 2016

v3.2.1

3.2.1.0

A PHP library to connect all Iraninan payments gateways

  Sources   Download

MIT

by mohsen shafiei
by ReZa ZaRe

26/07 2016

v3.2.0

3.2.0.0

A PHP library to connect all Iraninan payments gateways

  Sources   Download

MIT

by mohsen shafiei
by ReZa ZaRe

30/05 2016

v3.1.0

3.1.0.0

A PHP library to connect all Iraninan payments gateways

  Sources   Download

MIT

by mohsen shafiei
by ReZa ZaRe

22/12 2015

v3.0.0

3.0.0.0

A PHP library to connect all Iraninan payments gateways

  Sources   Download

MIT

by mohsen shafiei
by ReZa ZaRe

13/11 2015

v3.0.0-beta1

3.0.0.0-beta1

A PHP library to connect all Iraninan payments gateways

  Sources   Download

MIT

by mohsen shafiei
by ReZa ZaRe

22/04 2015

v2.0.0

2.0.0.0

A module to connect Iranian Bank

  Sources   Download

MIT

by mohsen shafiei

10/03 2015

v1.1.0

1.1.0.0

A module to connect Iranian Bank

  Sources   Download

MIT

by mohsen shafiei

07/01 2015

1.0.0

1.0.0.0

A module to connect Iranian Bank

  Sources   Download

MIT

by mohsen shafiei