Update ApiController.php

This commit is contained in:
Azfar Arsyad
2022-03-23 09:01:25 +08:00
parent 23059f1b73
commit 8798d0286a
+3 -3
View File
@@ -61,9 +61,9 @@ class ApiController extends Controller
}else{
$this->api_key = 'f3e82fe1-a422-4660-97f0-65cc59ff6c47';
$this->XSignature_Key = 'S-alZUbzmD2_TF3vmrRqgehQ';
$this->collection_id = 'drxdyor4';
}
}
public function biditem()
@@ -153,7 +153,7 @@ class ApiController extends Controller
$year = $current->format('y');
$total_bayaran = 1000;
dd($request->email);
$collection_id = $this->collection_id;
$response = $bill->create(
$collection_id,
@@ -174,7 +174,7 @@ class ApiController extends Controller
}
$billcode = $response->toArray();
dd($billcode);
// dd($billcode);
// $billcode['redirect_url'] = 'http://192.168.0.10:8003/api/pembayaran/response';
// dd($billcode);
$reference_no = 'LPKB' . $day . $month . $year . sprintf("%08d", $nosiri);