fix arrahnpay
This commit is contained in:
@@ -23,7 +23,7 @@ class BayaranController extends Controller
|
||||
if(config('app.env') != 'production'){
|
||||
$this->api_key = 'abecfd0c-98d8-4635-abc2-2fcba8c60c11';
|
||||
$this->XSignature_Key = 'S-GWr7z03XjAhqPsFfu_H5nQ';
|
||||
$this->collection_id = 'z0r4kjhi';
|
||||
$this->collection_id = '5aosv2dg';
|
||||
}else{
|
||||
$this->api_key = 'f3e82fe1-a422-4660-97f0-65cc59ff6c47';
|
||||
$this->XSignature_Key = 'S-alZUbzmD2_TF3vmrRqgehQ';
|
||||
@@ -100,7 +100,7 @@ class BayaranController extends Controller
|
||||
// array_push($arraybayaran,['norujukan' => $norujukan, 'kodcaw' => $request->txtkodcawhidden[$index1], 'bayaran' => $request->txtbayaranhidden[$index1]]);
|
||||
// }
|
||||
|
||||
$arraycollection_id = array();
|
||||
// $arraycollection_id = array();
|
||||
|
||||
$http = new HttpMethodsClient(
|
||||
new GuzzleHttpClient(),
|
||||
@@ -148,21 +148,21 @@ class BayaranController extends Controller
|
||||
Session::put('payment_method','login');
|
||||
Session::save();
|
||||
|
||||
foreach($request->txtkodcawhidden as $index2=>$kodcaw)
|
||||
{
|
||||
if(config('app.env') != 'production'){
|
||||
$collection_id = $this->collection_id;
|
||||
}else{
|
||||
$collection_id = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/billplz/collectionid',[
|
||||
'kodcaw' => $kodcaw
|
||||
])->json();
|
||||
}
|
||||
array_push($arraycollection_id,$collection_id);
|
||||
}
|
||||
// foreach($request->txtkodcawhidden as $index2=>$kodcaw)
|
||||
// {
|
||||
// if(config('app.env') != 'production'){
|
||||
// $collection_id = $this->collection_id;
|
||||
// }else{
|
||||
// $collection_id = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url'). '/api/billplz/collectionid',[
|
||||
// 'kodcaw' => $kodcaw
|
||||
// ])->json();
|
||||
// }
|
||||
// array_push($arraycollection_id,$collection_id);
|
||||
// }
|
||||
|
||||
|
||||
$response = $bill->create(
|
||||
$collection_id,
|
||||
$this->collection_id,
|
||||
Auth::user()->email,
|
||||
Auth::user()->notel,
|
||||
Auth::user()->name,
|
||||
|
||||
Reference in New Issue
Block a user