added cursor pointer into trolley at homepage that redirect to trolley page

This commit is contained in:
hafifierahman
2024-12-09 00:21:04 +08:00
parent 09e0afbd84
commit 6919f75abf
5 changed files with 109 additions and 20 deletions
+2 -14
View File
@@ -33,10 +33,6 @@ class BillplzService
public function createBill(array $data,string $company)
{
Session::put('company',$company);
$this->setCompany($company);
$this->setupBillplzClient($company);
// dd($company,$this->config);
$composed_data = [
$this->config['collection_id'],
@@ -74,8 +70,6 @@ class BillplzService
public function redirect($request)
{
$this->setCompany(Session::get('company'));
$this->setupBillplzClient($this->company);
try{
$response = $this->client->bill()->redirect($request);
@@ -93,8 +87,8 @@ class BillplzService
public function webhook($request)
{
$this->setCompany(Session::get('company'));
$this->setupBillplzClient($this->company);
// $this->setCompany(Session::get('company'));
// $this->setupBillplzClient($this->company);
try {
$response = $this->client->webhook($request);
@@ -267,8 +261,6 @@ class BillplzService
? ($billplzEnvironments[$company] ?? config('services.billplz.production'))
: ($billplzEnvironments[$company] ?? config('services.billplz.sandbox'));
Log::info($company);
Log::info($this->isBase64($billplzConfig['x_signature']));
$client = Client::make($billplzConfig['api_key'], ($this->isBase64($billplzConfig['x_signature'])) ? $billplzConfig['x_signature'] : base64_encode($billplzConfig['x_signature']));
$client->useVersion('v4');
@@ -285,10 +277,6 @@ class BillplzService
$this->callbackUrl = route('pay.callback');
$this->redirectUrl = ['redirect_url' => route('pay.paymentStatus')];
}
protected function setCompany($company = 'PKB'){
$this->company = $company;
}
protected function isBase64($string) {
if (preg_match('/^[A-Za-z0-9+\/=]+$/', $string)) {