Coder Social home page Coder Social logo

laravelparsianpayment's Introduction

LaravelParsianPayment

Latest Version on Packagist Total Downloads Build Status StyleCI

This is Parsian Bank IPG Payment Package that work with soap services. This package contain from:

  • Routes (init payment & confirm payment)

  • Controller

  • Job (to dispatch when any payment confirmed)

  • Setting

Installation

Via Composer

$ composer require alive2212/laravel-parsian-payment

add following app.php in config file

'providers'=>[
    ...

    /*
     *  add parsian payment service provider
     */
    Alive2212\LaravelParsianPayment\LaravelParsianPaymentServiceProvider::class,
    
    ...
]
php artisan vendor:publish --tag laravel-parsian-payment.config
php artisan vendor:publish --tag laravel-parsian-payment.lang
php artisan vendor:publish --tag laravel-parsian-payment.job
php artisan parsian_payment:init

Add following into one service provider like 'RouteServiceProvider'

LaravelParsianPayment::routes(null,['middleware'=>'web']);

if you not use any default middleware for this package routes you can just use following

LaravelParsianPayment::routes();

Usage

After installation you can see following routs with php artisan route:list

POST: {your base url}/api/v1/custom/alive/parsian/payment/init 
POST: {your base url}/api/v1/custom/alive/parsian/payment/confirm  
RESOURCE (CRUD Full): {your base url}/api/v1/alive/parsian/payment 

At first you should use init api for init payment for use it put following into Header

  • Authorization
  • Accept

And put following into body of request

  • amount:{int value}

You should set callback URL into laravel-parsian-payment like following 'callback' => '{{base-url}}/api/v1/custom/alive/parsian/payment/confirm'

Change log

Please see the changelog for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email author email instead of using the issue tracker.

Credits

License

license. Please see the license file for more information.

laravelparsianpayment's People

Contributors

alive2212 avatar

Stargazers

Mahdi Amiri โ˜… avatar

Watchers

James Cloos avatar  avatar

Forkers

cryptobuks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.