JFIF x x C C " } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w !1AQ aq"2B #3Rbr{
File "Paytm.php"
Full Path: /home2/yvrgircc/public_html/ariseskilltech.com/app/Models/payment_gateway/Paytm.php
File size: 677 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace App\Models\payment_gateway;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Paytm extends Model
{
use HasFactory;
protected $table = 'payment_histories';
protected $fillable = ['item_type', 'item_id', 'user_id', 'amount', 'currency', 'identifier', 'transaction_keys'];
public static function payment_status($identifier, $transaction_keys = [])
{
if (is_array($transaction_keys) && count($transaction_keys) > 0) {
array_shift($transaction_keys);
session(['keys' => $transaction_keys]);
return true;
}
return false;
}
}