mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 04:57:35 -05:00 
			
		
		
		
	Initialization for GoCardless
This commit is contained in:
		
							parent
							
								
									33f0b6b7c6
								
							
						
					
					
						commit
						b3f97054c5
					
				@ -63,6 +63,16 @@ class GoCardlessPaymentDriver extends BaseDriver
 | 
				
			|||||||
        return $types;
 | 
					        return $types;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public function init(): self
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        $this->gateway = new \GoCardlessPro\Client([
 | 
				
			||||||
 | 
					            'access_token' => $this->company_gateway->getConfigField('accessToken'),
 | 
				
			||||||
 | 
					            'environment'  => $this->company_gateway->getConfigField('testMode') ? \GoCardlessPro\Environment::SANDBOX : \GoCardlessPro\Environment::LIVE,
 | 
				
			||||||
 | 
					        ]);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        return $this;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public function authorizeView(array $data)
 | 
					    public function authorizeView(array $data)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return $this->payment_method->authorizeView($data);
 | 
					        return $this->payment_method->authorizeView($data);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user