Skip to content

Latest commit

 

History

History
86 lines (51 loc) · 1.98 KB

README.md

File metadata and controls

86 lines (51 loc) · 1.98 KB

Laravel Online Payment

Online Payment Module handler for Laravel 5+

Installation

1.Installing via composer

composer require iamtartan/laravel-online-payment:"^2.0"

2.Add this to your app service providers for laravel version < 5.4 :

Tartan\Larapay\LarapayServiceProvider::class,

3.Add this to your aliases :

'Larapay' => Tartan\Larapay\Facades\Larapay::class,

4.Publish the package assets and configs

php artisan vendor:publish
  1. Preparing your db (eloquent) model for larapay integration

    • Your Transaction/Invoice (Eloquent) model MUST implement
namespace App\Model;

use Tartan\Larapay\Transaction;

class Transaction extends Model implements TransactionInterface
{
	public function setReferenceId($referenceId, $save = true){}

	public function checkForRequestToken(){}

	public function checkForVerify(){}

	public function checkForInquiry(){}

	public function checkForReverse(){}

	public function checkForAfterVerify(){}

	public function setCardNumber($cardNumber){}

	public function setVerified(){}

	public function setAfterVerified(){}

	public function setSuccessful($flag){}

	public function setReversed(){}

	public function getAmount(){}

	public function setPaidAt($time = 'now'){}

	public function setExtra($key, $value, $save = false){}
}

Team

This component is developed by the following person(s) and a bunch of awesome contributors.

Aboozar Ghaffari
Aboozar Ghaffari

Support This Project

Donate via Paypal

License

The Laravel Online Payment Module is open-sourced software licensed under the MIT license