Package Data | |
---|---|
Maintainer Username: | tartan |
Maintainer Contact: | iamtartan@gmail.com (Aboozar Ghafari <Tartan>) |
Package Create Date: | 2016-07-30 |
Package Last Update: | 2018-01-11 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-04-16 15:02:15 |
Package Statistics | |
---|---|
Total Downloads: | 127 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 6 |
Total Watchers: | 2 |
Total Forks: | 2 |
Total Open Issues: | 1 |
All Iranian payment gateways handler
1.Installing Via composer
composer require keraken/epayment:"dev-master"
2.Add this to your app service providers :
Tartan\Epayment\EpaymentServiceProvider::class,
3.Add this to your aliases :
'Epayment' => Tartan\Epayment\Facades\Epayment::class,
4.Publish the package assets and configs
php artisan vendor:publish
Preparing your db (eloquent) model for epayment integration
namespace App\Model;
use Tartan\Epayment\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){}
}