Download the PHP package php-monsters/shaparak without Composer
On this page you can find all versions of the php package php-monsters/shaparak. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download php-monsters/shaparak
More information about php-monsters/shaparak
Files in php-monsters/shaparak
Package shaparak
Short Description Iranian payment gateways handler for laravel based applications
License MIT
Informations about the package shaparak
Shaparak :: Laravel Online Payment Component
Online Payment Component for Laravel 5+ known as Shaparak component completely compatible with BankTest simulator. Shaparak integrated all Iranian/Shetab payment gateways to one component.
What is Banktest?
- BankTest is a sandbox service for all Iranian online payment gateways
- بانک تست یک سرویس شبیه ساز درگاه های پرداخت آنلاین ایرانی برای اهداف توسعه و تست نرم افزار می باشد
Support This Project
Please support the package by giving it :star: and contributing to its development.
Currently supported PSPs:
- Mellat Bank Gateway - درگاه بانک ملت (به پرداخت ملت) لاراول
- Saman Bank Gateway - درگاه بانک سامان (پرداخت الکترونیک سامان) لاراول
- Saderat Bank Gateway - درگاه بانک صادرات (پرداخت الکترونیک سپهر) لاراول
- Pasargad Bank Gateway - درگاه بانک پاسارگاد (پرداخت الکترونیک پاسارگاد) لاراول
- Parsian Bank Gateway - درگاه بانک پارسیان (تجارت الکترونیک پارسیان) لاراول
- Melli Bank Gateway - درگاه بانک ملی (سداد) لاراول
- ...
Requirements
Shaparak require PHP 7.1+
Installation
-
Installation via php composer
-
Add package service provider to your app service providers:
-
Add package alias to your app aliases:
- Publish package assets and configs
Configuration
If you complete installation step correctly, you can find Shaparak config file as shaparak.php
in you project config file.
For using sandbox environment you should set in your .env file otherwise set
if you choose development mode, Shaparak uses banktest.ir as its payment gateway.
Usage
Add required fields to the model migration
Prepare required model(s)
Your Transaction, Invoice or Order model MUST implement Shaparak Transaction Interface.
Shaparak Integration Trait
You can use a trait as below in order integrate your model with Shaparak and implement Shaparak's Transaction contract.
Sample integration trait (THIS IS JUST AN EXAMPLE):
Initialize a Shaparak instance
Create goto IPG form (Payment form)
Create a form in order to go to payment gateway. This form is auto-submit by default
Show the form in your blade like:
Callback URL/route on your application
In your callback action create a Shaparak instance and handle the transaction
Next steps (optional steps)
Use the following methods based on your needs
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Team
This component is developed by the following person(s) and a bunch of awesome contributors.
Aboozar Ghaffari | Maryam Nabiyan |
License
The Laravel Online Payment Module is open-sourced software licensed under the MIT license
All versions of shaparak with dependencies
ext-curl Version *
ext-json Version *
ext-openssl Version *
ext-simplexml Version *
ext-soap Version *
ext-xml Version *
ext-bcmath Version *
illuminate/support Version >=8.0
illuminate/view Version >=8.0
php-monsters/laravel-xlog Version ^1.3