mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 07:57:33 -05:00 
			
		
		
		
	Add customer statement descriptors for Stripe
This commit is contained in:
		
							parent
							
								
									b71e3a19af
								
							
						
					
					
						commit
						9634c4442f
					
				@ -728,7 +728,7 @@ class BaseDriver extends AbstractPaymentDriver
 | 
				
			|||||||
        App::setLocale($this->client->company->locale());
 | 
					        App::setLocale($this->client->company->locale());
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
        if (! $this->payment_hash || !$this->client) 
 | 
					        if (! $this->payment_hash || !$this->client) 
 | 
				
			||||||
            return ' ';
 | 
					            return 'x';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $invoices_string = \implode(', ', collect($this->payment_hash->invoices())->pluck('invoice_number')->toArray()) ?: null;
 | 
					        $invoices_string = \implode(', ', collect($this->payment_hash->invoices())->pluck('invoice_number')->toArray()) ?: null;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -736,7 +736,7 @@ class BaseDriver extends AbstractPaymentDriver
 | 
				
			|||||||
        
 | 
					        
 | 
				
			||||||
        $invoices_string = substr($invoices_string,0,22);
 | 
					        $invoices_string = substr($invoices_string,0,22);
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
        $invoices_string = str_pad($invoices_string, 5, "_");
 | 
					        $invoices_string = str_pad($invoices_string, 5, ctrans('texts.invoice'), STR_PAD_LEFT);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return $invoices_string;
 | 
					        return $invoices_string;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -276,6 +276,7 @@ class ACH
 | 
				
			|||||||
                    'payment_hash' => $this->stripe->payment_hash->hash,
 | 
					                    'payment_hash' => $this->stripe->payment_hash->hash,
 | 
				
			||||||
                    'gateway_type_id' => $cgt->gateway_type_id,
 | 
					                    'gateway_type_id' => $cgt->gateway_type_id,
 | 
				
			||||||
                ],
 | 
					                ],
 | 
				
			||||||
 | 
					                'statement_descriptor' => $this->stripe->getStatementDescriptor(),
 | 
				
			||||||
            ];
 | 
					            ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if ($cgt->gateway_type_id == GatewayType::BANK_TRANSFER) {
 | 
					            if ($cgt->gateway_type_id == GatewayType::BANK_TRANSFER) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user