mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-02 22:57:33 -05:00 
			
		
		
		
	add double check for storing card
This commit is contained in:
		
							parent
							
								
									93f86db148
								
							
						
					
					
						commit
						c03ce4c23a
					
				@ -143,7 +143,7 @@ class CheckoutComPaymentDriver extends BasePaymentDriver
 | 
			
		||||
    {
 | 
			
		||||
        $state['charge_id'] = $state['payment_response']->id;
 | 
			
		||||
 | 
			
		||||
        if (isset($state['store_card'])) {
 | 
			
		||||
        if (isset($state['store_card']) && $state['store_card']) {
 | 
			
		||||
            $this->saveCard($state);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@ -175,7 +175,7 @@ class CheckoutComPaymentDriver extends BasePaymentDriver
 | 
			
		||||
    {
 | 
			
		||||
        $state['charge_id'] = $state['payment_response']->id;
 | 
			
		||||
 | 
			
		||||
        if (isset($state['store_card'])) {
 | 
			
		||||
        if (isset($state['store_card']) && $state['store_card']) {
 | 
			
		||||
            $this->saveCard($state);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user