added cursor pointer into trolley at homepage that redirect to trolley page
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user