????

Your IP : 18.218.2.200


Current Path : /home/thenclexdoctor.com/.trash/app/Models/
Upload File :
Current File : /home/thenclexdoctor.com/.trash/app/Models/PaymentChannel.php

<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class PaymentChannel extends Model
{
    protected $table = 'payment_channels';
    protected $guarded = ['id'];
    public $timestamps = false;

    static $classes = [
        'Paypal', 'Payu', 'Razorpay'
    ];

    static $gatewayIgnoreRedirect = [
        'Paypal', 'Payu', 'Razorpay'
    ];

    static $paypal = 'Paypal';
    static $payu = 'Payu';
    static $razorpay = 'Razorpay';
   

    public function getCredentialsAttribute()
    {
        $credentials = $this->attributes['credentials'];

        if (!empty($credentials)) {
            $credentials = json_decode($credentials, true);
        }

        return $credentials;
    }

    public function getCurrenciesAttribute()
    {
        if (!empty($this->attributes['currencies'])) {
            return json_decode($this->attributes['currencies'], true);
        }

        return [];
    }
}

Page not found | The NCLEX Doctor

Page not found!

Sorry, this page is not available...