add checking in the controller for the payment that have been successfully.

This commit is contained in:
hafifierahman
2023-07-17 12:42:08 +08:00
parent fa43e3a7b4
commit f2f39d86d8
@@ -77,6 +77,10 @@ class BayaranController extends Controller
{
$gadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/gadai/norujukan/'. $sag)->json();
$sagonline = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/portal/searchsagonline/',['norujukan' => $sag])->json();
if($sagonline == true)
return redirect()->route('home')->with('error','Salah Satu SAG Yang Dipilih Telah Pun Dibayar!');
//$array_lelong = Http::withOptions(['verify' => config('app.api_verify')])->get('https://niklah.arrahn.com.my/api/portalApi',['norujukan' => $sag])->json();
//if($array_lelong['lelong'] !== null){
// return redirect()->route('home')->with('error','Barangan Sedang Dilelong.');