-
Notifications
You must be signed in to change notification settings - Fork 56
Error #41
Copy link
Copy link
Open
Description
How to Fix It , connection Refused
public function execute(Request $request, $username, $id) {
try {
$bohudur = Bohudur::make(env('BOHUDUR_API_KEY'));
$paymentKey = $request->get('payment_key');
$response = $bohudur->execute($paymentKey);
$product = Product::find($id);
if ($response->success()) {
$rcon = new Rcon('tiger.qbitnode.com', 4372, 'cmd', 5);
if ($rcon->connect()) {
if ($product->category == 'rank') {
$rcon->sendCommand("lp user {$username} parent set {$product->ingamename}");
} elseif ($product->category == 'crate') {
$rcon->sendCommand("crate giveKey {$product->ingamename} {$username} 1");
}
flash()->success('Order complete');
return redirect()->route('home');
}
} elseif ($response->pending()) {
flash()->success('Order Pending');
return redirect()->route('home');
} elseif ($response->failed()) {
flash()->error('Something went wrong!');
return redirect()->route('home');
}
} catch (\Bohudur\LaravelSDK\Exceptions\BohudurException $e) {
dd("Verification Error: " . $e->getMessage());
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels