Download the PHP package farayaz/larapay without Composer

On this page you can find all versions of the php package farayaz/larapay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package larapay

Larapay | لاراپِی

GitHub Repo stars Total Downloads Latest Stable Version License PHP Version

Larapay is a Laravel package for integrating Iranian payment gateways.

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


Requirements | نیازمندی‌ها


Installation | نصب


Configuration | تنظیمات

No configuration file is required. Just pass the gateway config directly when calling the gateway.

نیازی به فایل کانفیگ جداگانه نیست. تنظیمات درگاه را مستقیماً هنگام فراخوانی ارسال کنید.

Each gateway has its own required parameters. See the Gateways table below.

هر درگاه پارامترهای مورد نیاز خود را دارد. به جدول درگاه‌ها مراجعه کنید.


Gateways | درگاه‌ها

Class Name (en) Name (fa) Requirements Features
AsanPardakht AsanPardakht آسان پرداخت (آپ) username, password, merchant_configuration_id -
Azkivam Azkivam ازکی وام merchant_id, api_key -
BehPardakht Beh Pardakht Mellat به‌پرداخت ملت terminal_id, username, password, is_credit -
Bitpay Bitpay بیت پی api, sandbox -
Digipay Digipay دیجی‌پی username, password, client_id, client_secret -
ECD Electronic Card Damavand پرداخت الکترونیک دماوند terminal_number, hash_key -
FanavaCard FanavaCard فن‌آوا کارت user_id, password -
IdPay IdPay آیدی‌پی apiKey, sandbox -
IranDargah IranDargah ایران درگاه merchant_id, sandbox -
IranKish Iran Kish ایران کیش terminalId, password, acceptorId, pubKey -
IsipaymentSamin Isipayment Samin ایزایران ثمین merchant_code, merchant_password, terminal_code, type, number_of_installment -
JetPay JetPay جت‌پی username, password, terminal_id, credit_id Bulk Check, Transaction List
Keepa Keepa - Kipaa کیپا token -
MehrIran MehrIran بانک مهر ایران terminal_id, merchant_nid, encrypt_key -
NextPay NextPay نکست پی api_key -
Omidpay Omidpay - Sayan Card امید پی (سایان کارت) user_id, password -
PardakhtNovin Pardakht Novin پرداخت نوین userId, password, terminalId -
PayPing PayPing پی پینگ token -
PEC PEC تجارت الکترونیک پارسیان login_account -
PEP PEP پرداخت الکترونیک پاسارگاد username, password, terminal_number -
Polam Polam (Poolam) پولام api_key -
RefahBeta Refah Beta بانک رفاه بتا client_id, client_secret, api_key, number_of_installments Bulk Check
Sadad Sadad پرداخت الکترونیک سداد (ملی) terminal_id, merchant_id, key -
SadadBNPL SadadBNPL سداد BNPL terminal_id, merchant_id, key -
Sep Saman Electronic Payment پرداخت الکترونیک سامان (سپ) terminalId -
Sepal Sepal سپال api_key -
SepehrPay Sepehr Pay پرداخت الکترونیک سپهر (مبنا) terminalId -
Shepa Shepa شپا api -
SnappPay SnappPay اسنپ‌پی username, password, client_id, client_secret -
TabaPay TabaPay تاباپی token -
TejaratBajet Tejarat Bajet بانک تجارت - باجت client_id, client_secret, sandbox Bulk Check
:test_tube: Test Test تست - -
Vandar Vandar وندار api_key -
ZarinPal Zarin Pal زرین پال merchant_id -
Zibal Zibal زیبال merchant -

Features: Bulk Check = supports bulk transaction status checking. Transaction List = supports transaction lists and filters.

اگر درگاه مورد نظر خود را پیدا نکردید، به ما اطلاع دهید یا در اضافه کردن آن مشارکت کنید.


Usage | نحوه استفاده

The payment flow consists of 3 steps: Request (get token), Redirect (send user to gateway), and Verify (confirm payment).

فرایند پرداخت شامل ۳ مرحله است: دریافت توکن، هدایت کاربر به درگاه، و تأیید پرداخت.

1. Request Token | دریافت توکن

Response:

Key Type Description
token string Gateway token to use in redirect/verify
fee int Transaction fee in Rials

2. Redirect to Gateway | هدایت به درگاه

This returns a redirect response (either a RedirectResponse to the gateway or a form view).

3. Verify Payment | تأیید پرداخت

Response:

Key Type Description
result string Status message from gateway
reference_id string|null Gateway reference number (شناسه پیگیری)
tracking_code string|null Transaction tracking code (شماره تراکنش)
card string|null Masked card number (شماره کارت)
fee int Transaction fee in Rials

Complete Controller Example | مثال کامل کنترلر


Advanced Usage | استفاده پیشرفته

Refund | بازگشت وجه

Only available on gateways that implement RefundableInterface.

فقط در درگاه‌هایی که RefundableInterface را پیاده‌سازی کرده‌اند در دسترس است.

Bulk Check | بررسی گروهی

Only available on gateways that implement BulkCheckableInterface.

فقط در درگاه‌هایی که BulkCheckableInterface را پیاده‌سازی کرده‌اند در دسترس است.

JetPay checks the last 30 days: failed and refunded transactions trigger unsuccessCallback; pending and unknown statuses are skipped.

Transaction List | لیست تراکنش‌ها

Check Gateway Capabilities | بررسی قابلیت‌های درگاه


Error Handling | مدیریت خطا

All exceptions are thrown as Farayaz\Larapay\Exceptions\LarapayException.

تمام خطاها به صورت LarapayException پرتاب می‌شوند.


Benefits | مزایا


Contributing | مشارکت

If you don't find the gateway you want, feel free to contribute!

اگر درگاه مورد نظر خود را پیدا نکردید، در اضافه کردن آن مشارکت کنید!

  1. Create a new class in src/Gateways/ extending GatewayAbstract
  2. Implement request(), redirect(), and verify() methods
  3. Optionally implement RefundableInterface or BulkCheckableInterface
  4. Add the gateway to the table in this README
  5. Submit a Pull Request

License | مجوز

This package is open-source software licensed under the MIT license.

این پکیج تحت مجوز MIT منتشر شده است.


All versions of larapay with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/container Version ^12.0 || ^13.0
illuminate/contracts Version ^12.0 || ^13.0
illuminate/support Version ^12.0 || ^13.0
morilog/jalali Version 3.*
illuminate/http Version ^12.0 || ^13.0
ramsey/uuid Version ^4.7
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package farayaz/larapay contains the following files

Loading the files please wait ...