@php $store = request()->store; $provider_slug = 'paypal_'.strtolower($store['ref_prefix']); $provider["provider"] = $provider_slug; $PaymentDetails = (new \twa\ecomcart\controllers\EcomPurchasesController)->getGatewayCurrency($total,$provider); $currency = $PaymentDetails['currency']; $total = $PaymentDetails['value']; @endphp
@php $config = config('omnipay.'.$provider_slug); if($config && array_key_exists('data',$config) && array_key_exists('client_id',$config['data']) ){ $client_id = $config['data']['client_id']; } @endphp