Online Payment Module handler for Laravel 5+
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
-
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){}
}
This component is developed by the following person(s) and a bunch of awesome contributors.
Aboozar Ghaffari |
The Laravel Online Payment Module is open-sourced software licensed under the MIT license