mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 05:27:33 -05:00 
			
		
		
		
	check decryption
This commit is contained in:
		
							parent
							
								
									5159288bb8
								
							
						
					
					
						commit
						f78443e6d9
					
				@ -1286,6 +1286,15 @@ info("translated gateway_type = {$translated_gateway_type}");
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            $gateway_types = $account_gateway->paymentDriver()->gatewayTypes();
 | 
					            $gateway_types = $account_gateway->paymentDriver()->gatewayTypes();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            $config = 'If you see this message - we were not able to decrypt your config';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            try{
 | 
				
			||||||
 | 
					                $config = Crypt::decrypt($account_gateway->config);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            catch(\Exception $e){
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            // foreach ($gateway_types as $gateway_type_id) {
 | 
					            // foreach ($gateway_types as $gateway_type_id) {
 | 
				
			||||||
                $transformed[] = [
 | 
					                $transformed[] = [
 | 
				
			||||||
                    'id' => $account_gateway->id,
 | 
					                    'id' => $account_gateway->id,
 | 
				
			||||||
@ -1297,7 +1306,7 @@ info("translated gateway_type = {$translated_gateway_type}");
 | 
				
			|||||||
                    'require_billing_address' => $account_gateway->show_billing_address,
 | 
					                    'require_billing_address' => $account_gateway->show_billing_address,
 | 
				
			||||||
                    'require_shipping_address' => $account_gateway->show_shipping_address,
 | 
					                    'require_shipping_address' => $account_gateway->show_shipping_address,
 | 
				
			||||||
                    'update_details' => $account_gateway->update_details,
 | 
					                    'update_details' => $account_gateway->update_details,
 | 
				
			||||||
                    'config' => Crypt::decrypt($account_gateway->config),
 | 
					                    'config' => $config,
 | 
				
			||||||
                    'fees_and_limits' => $this->buildFeesAndLimits($gateway_types),
 | 
					                    'fees_and_limits' => $this->buildFeesAndLimits($gateway_types),
 | 
				
			||||||
                    'custom_value1' => '',
 | 
					                    'custom_value1' => '',
 | 
				
			||||||
                    'custom_value2' => '',
 | 
					                    'custom_value2' => '',
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user