35 lines
648 B
PHP
35 lines
648 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class PaymentTransaction extends Model
|
|
{
|
|
protected $table = 'payment_transactions';
|
|
|
|
|
|
protected $casts = [
|
|
'transmitted_data' => 'array'
|
|
];
|
|
|
|
protected $fillable = [
|
|
'shopping_payment_id',
|
|
'request',
|
|
'txid',
|
|
'userid',
|
|
'status',
|
|
'key',
|
|
'txaction',
|
|
'transmitted_data',
|
|
'errorcode',
|
|
'errormessage',
|
|
'customermessage',
|
|
];
|
|
|
|
|
|
public function shopping_payment()
|
|
{
|
|
return $this->belongsTo('App\Models\ShoppingPayment','shopping_payment_id');
|
|
}
|
|
}
|