fix pargar bugs 2
This commit is contained in:
@@ -112,7 +112,7 @@ class paypingController extends Controller
|
||||
'user_id' => $user->id,
|
||||
'user' => $user,
|
||||
'title' => $this->Config('name_fa'),
|
||||
'return_url' => 'https://' . $this->Config('app_url') . '/transactions',
|
||||
'return_url' => $this->cfg()->resolvePublicSiteUrl(request()) . '/transactions',
|
||||
'server_call_url' => url('/customer/charge_account_verify/' . $Withdraw->id),
|
||||
'item' => $this->resolveGatewayItem(),
|
||||
];
|
||||
@@ -158,7 +158,7 @@ class paypingController extends Controller
|
||||
}
|
||||
|
||||
$Withdraw = Withdraw::with('customer')->where('id', $id)->first();
|
||||
$app_url = $this->Config('app_url');
|
||||
$site_url = $this->cfg()->resolvePublicSiteUrl(request());
|
||||
$User = Customer::where('id', $Withdraw->customer_id)->first();
|
||||
|
||||
$GTransaction = Http::withHeaders($this->paypingHeaders())
|
||||
@@ -206,7 +206,7 @@ class paypingController extends Controller
|
||||
}
|
||||
});
|
||||
|
||||
return view('showTransactionReport', compact('Withdraw', 'app_url'));
|
||||
return view('showTransactionReport', compact('Withdraw', 'site_url'));
|
||||
}
|
||||
|
||||
return 'مبلغ پرداختی دستکاری شده !';
|
||||
@@ -221,13 +221,13 @@ class paypingController extends Controller
|
||||
$Withdraw->sts = 3;
|
||||
$Withdraw->save();
|
||||
|
||||
return view('showTransactionReport', compact('Withdraw', 'app_url'));
|
||||
return view('showTransactionReport', compact('Withdraw', 'site_url'));
|
||||
}
|
||||
|
||||
public function verifyTransation()
|
||||
{
|
||||
$Withdraw = Withdraw::with('customer')->where('id', $_GET['clientrefid'])->first();
|
||||
$app_url = $this->Config('app_url');
|
||||
$site_url = $this->cfg()->resolvePublicSiteUrl(request());
|
||||
$User = Customer::where('id', $Withdraw->customer_id)->first();
|
||||
|
||||
$verifyResponse = Http::withToken('cf09ee0187335f173c786e7660d778d2dd71ab582d282999f751427f5923d525')
|
||||
@@ -297,7 +297,7 @@ class paypingController extends Controller
|
||||
}
|
||||
});
|
||||
|
||||
return view('showTransactionReport', compact('Withdraw', 'app_url'));
|
||||
return view('showTransactionReport', compact('Withdraw', 'site_url'));
|
||||
}
|
||||
|
||||
return 'مبلغ پرداختی دستکاری شده !';
|
||||
@@ -306,6 +306,6 @@ class paypingController extends Controller
|
||||
$Withdraw->sts = 3;
|
||||
$Withdraw->save();
|
||||
|
||||
return view('showTransactionReport', compact('Withdraw', 'app_url'));
|
||||
return view('showTransactionReport', compact('Withdraw', 'site_url'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user