All Projects → PoolPort → PoolPort

PoolPort / PoolPort

Licence: MIT license
A PHP library to connect all Iranian payments gateways

Programming Languages

PHP
23972 projects - #3 most used programming language

Labels

Projects that are alternatives of or similar to PoolPort

Australian-Open-Banking-Data-Database
This is an ongoing collection of Open Banking Data APIs for Australian deposit taking institutions.
Stars: ✭ 72 (-4%)
Mutual labels:  banking
OBIS
A JavaScript framework for downloading bank statements in OFX, QIF, CSV, and JSON. Currently supports HSBC UK Personal Banking.
Stars: ✭ 37 (-50.67%)
Mutual labels:  banking
python-emv
EMV Smartcard Protocol Tool and Library
Stars: ✭ 72 (-4%)
Mutual labels:  banking
fints-institute-db
Database of German Banks and their HBCI / FinTS endpoints
Stars: ✭ 28 (-62.67%)
Mutual labels:  banking
sbankenclient-ios
A small but enjoyable iOS framework to connect to the Sbanken API
Stars: ✭ 21 (-72%)
Mutual labels:  banking
psd2
API client for banks supporting PSD2 APIs with OAuth2 authentication.
Stars: ✭ 26 (-65.33%)
Mutual labels:  banking
moneywave-nodejs
A client library for moneywave API
Stars: ✭ 16 (-78.67%)
Mutual labels:  banking
wire
FedWire funds service file parser and writer. The HTTP server is available in a Docker image and the Go package is available.
Stars: ✭ 52 (-30.67%)
Mutual labels:  banking
doc
The bunq API documentation
Stars: ✭ 18 (-76%)
Mutual labels:  banking
public
This is a repository of BIAN artefacts, currently the BIAN Semantic APIs
Stars: ✭ 42 (-44%)
Mutual labels:  banking
cerberus research
Research tools for analysing Cerberus banking trojan.
Stars: ✭ 110 (+46.67%)
Mutual labels:  banking
awesome-open-finance
A curated list of open finance and open banking resources
Stars: ✭ 92 (+22.67%)
Mutual labels:  banking
node-cba-netbank
Unofficial The Commonwealth Bank of Australia NetBank API wrap for Node.js
Stars: ✭ 68 (-9.33%)
Mutual labels:  banking
n26-api
Unofficial N26 Bank API documentation
Stars: ✭ 41 (-45.33%)
Mutual labels:  banking
jbanking
A Java banking API
Stars: ✭ 58 (-22.67%)
Mutual labels:  banking
promptpay
Thai QR PromptPay Generator
Stars: ✭ 24 (-68%)
Mutual labels:  banking
dockerbb
Protótipo de imagem Docker com Navegador Chromium e Warsaw instalados para acessar o Banco do Brasil
Stars: ✭ 29 (-61.33%)
Mutual labels:  banking
BankPayment
Persian Bank Payment Server
Stars: ✭ 37 (-50.67%)
Mutual labels:  banking
Loan-calculator-bank-payment
Loan Calculator a small web application encoded in HTML, PHP, JS, and CSS. If you want to earn from BANK NICHE then you can use Loan Calculator script.
Stars: ✭ 32 (-57.33%)
Mutual labels:  banking
ebics-java-client
Java open source EBICS client - Support for French, German and Swiss banks
Stars: ✭ 30 (-60%)
Mutual labels:  banking

PoolPort

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

نصب پکیج

composer require poolport/poolport:~v3

فایل تنظیمات

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

  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

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].