mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 06:37:33 -05:00 
			
		
		
		
	WePay fixes
This commit is contained in:
		
							parent
							
								
									f3a278b9b5
								
							
						
					
					
						commit
						b9f9c0807d
					
				@ -7,8 +7,6 @@ use Exception;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
class WePayPaymentDriver extends BasePaymentDriver
 | 
					class WePayPaymentDriver extends BasePaymentDriver
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    protected $sourceReferenceParam = 'accessToken';
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    public function gatewayTypes()
 | 
					    public function gatewayTypes()
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        $types =  [
 | 
					        $types =  [
 | 
				
			||||||
@ -23,21 +21,6 @@ class WePayPaymentDriver extends BasePaymentDriver
 | 
				
			|||||||
        return $types;
 | 
					        return $types;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /*
 | 
					 | 
				
			||||||
    public function startPurchase($input = false, $sourceId = false)
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        $data = parent::startPurchase($input, $sourceId);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        if ($this->isGatewayType(GATEWAY_TYPE_BANK_TRANSFER)) {
 | 
					 | 
				
			||||||
            if ( ! $sourceId) {
 | 
					 | 
				
			||||||
                throw new Exception();
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        return $data;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    */
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    public function tokenize()
 | 
					    public function tokenize()
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
 | 
				
			|||||||
@ -39,4 +39,6 @@
 | 
				
			|||||||
        @endif
 | 
					        @endif
 | 
				
			||||||
    </center>
 | 
					    </center>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    {!! Former::close() !!}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@stop
 | 
					@stop
 | 
				
			||||||
 | 
				
			|||||||
@ -39,4 +39,6 @@
 | 
				
			|||||||
        @endif
 | 
					        @endif
 | 
				
			||||||
    </center>
 | 
					    </center>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    {!! Former::close() !!}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@stop
 | 
					@stop
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user