mirror of https://github.com/4xmen/xshop.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
508 B
PHP
23 lines
508 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Payment extends Model
|
|
{
|
|
use HasFactory;
|
|
const PENDING = 'PENDING';
|
|
const SUCCESS = 'SUCCESS';
|
|
const FAIL = 'FAIL';
|
|
const CANCEL = 'CANCEL';
|
|
|
|
protected $casts = [
|
|
'meta' => 'array',
|
|
];
|
|
|
|
public static $types = ['ONLINE', 'CHEQUE', 'CASH', 'CARD', 'CASH_ON_DELIVERY'];
|
|
public static $status = ['PENDING','SUCCESS', 'FAIL','CANCEL'];
|
|
}
|