One Hat Cyber Team
Your IP :
3.137.218.48
Server IP :
162.241.123.123
Server :
Linux sh016.hostgator.in 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
Server Software :
Apache
PHP Version :
8.2.25
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home1
/
saicsazq
/
keedoai.com
/
app
/
Services
/
View File Name :
PaymentPlatformResolverService.php
<?php namespace App\Services; use App\Models\PaymentPlatform; use Illuminate\Support\Facades\Auth; use DB; class PaymentPlatformResolverService { protected $paymentPlatforms; public function __construct() { $this->paymentPlatforms = PaymentPlatform::all(); } /** * Process payment platforms * * */ public function resolveService($paymentPlatformID) { $name = strtolower($this->paymentPlatforms->firstWhere('id', $paymentPlatformID)->name); $service = config("services.{$name}.class"); if ($service) { return resolve($service); } throw new \Exception('The selected payment gateway is not supported.'); } }