39 lines
799 B
PHP
39 lines
799 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use CodeIgniter\Model;
|
|
|
|
|
|
class PayPalPaymentModel extends Model
|
|
{
|
|
protected $table = 'paypal_payments';
|
|
protected $primaryKey = 'id';
|
|
protected $allowedFields = [
|
|
'webhook_id',
|
|
'parent_school_id',
|
|
'order_id',
|
|
'transaction_id',
|
|
'status',
|
|
'amount',
|
|
'currency',
|
|
'paypal_fee',
|
|
'net_amount',
|
|
'payer_email',
|
|
'merchant_id',
|
|
'event_type',
|
|
'summary',
|
|
'raw_payload',
|
|
'synced',
|
|
'semester',
|
|
'school_year',
|
|
'sync_attempts'
|
|
];
|
|
|
|
// Enable timestamps
|
|
protected $useTimestamps = true;
|
|
protected $createdField = 'created_at';
|
|
protected $updatedField = ''; // not used; leave empty if not needed
|
|
}
|
|
|