mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 19:30:07 -05:00 
			
		
		
		
	Access country
This commit is contained in:
		
							parent
							
								
									dd4d5534fb
								
							
						
					
					
						commit
						00184ffb51
					
				@ -41,7 +41,7 @@ class ACH
 | 
			
		||||
    public function authorizeView($data)
 | 
			
		||||
    {
 | 
			
		||||
        $data['gateway'] = $this->wepay_payment_driver;
 | 
			
		||||
        $data['country_code'] = $this->wepay_payment_driver?->client?->country ? $this->wepay_payment_driver->client->country->iso_3166_2 : $this->wepay_payment_driver->company_gateway->company()->iso_3166_2;
 | 
			
		||||
        $data['country_code'] = $this->wepay_payment_driver?->client?->country ? $this->wepay_payment_driver->client->country->iso_3166_2 : $this->wepay_payment_driver->company_gateway->company->country()->iso_3166_2;
 | 
			
		||||
 | 
			
		||||
        return render('gateways.wepay.authorize.bank_transfer', $data);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -37,7 +37,7 @@ class CreditCard
 | 
			
		||||
    public function authorizeView($data)
 | 
			
		||||
    {
 | 
			
		||||
        $data['gateway'] = $this->wepay_payment_driver;
 | 
			
		||||
        $data['country_code'] = $this->wepay_payment_driver?->client?->country ? $this->wepay_payment_driver->client->country->iso_3166_2 : $this->wepay_payment_driver->company_gateway->company()->iso_3166_2;
 | 
			
		||||
        $data['country_code'] = $this->wepay_payment_driver?->client?->country ? $this->wepay_payment_driver->client->country->iso_3166_2 : $this->wepay_payment_driver->company_gateway->company->country()->iso_3166_2;
 | 
			
		||||
 | 
			
		||||
        return render('gateways.wepay.authorize.authorize', $data);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user