mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 00:17:34 -05:00 
			
		
		
		
	Fixes for Stripe Connect
This commit is contained in:
		
							parent
							
								
									aa39e8f750
								
							
						
					
					
						commit
						ed21217c9b
					
				@ -148,6 +148,6 @@ return [
 | 
				
			|||||||
    'disable_auto_update' => env('DISABLE_AUTO_UPDATE', false),
 | 
					    'disable_auto_update' => env('DISABLE_AUTO_UPDATE', false),
 | 
				
			||||||
    'invoiceninja_hosted_pdf_generation' => env('NINJA_HOSTED_PDF', false),
 | 
					    'invoiceninja_hosted_pdf_generation' => env('NINJA_HOSTED_PDF', false),
 | 
				
			||||||
    'ninja_stripe_key' => env('NINJA_STRIPE_KEY', null),
 | 
					    'ninja_stripe_key' => env('NINJA_STRIPE_KEY', null),
 | 
				
			||||||
    'ninja_stripe_publishable_key' => env('NINJA_PUBLISHABLE_KEY=', null),
 | 
					    'ninja_stripe_publishable_key' => env('NINJA_PUBLISHABLE_KEY', null),
 | 
				
			||||||
    'pdf_generator' => env('PDF_GENERATOR', false),
 | 
					    'pdf_generator' => env('PDF_GENERATOR', false),
 | 
				
			||||||
];
 | 
					];
 | 
				
			||||||
 | 
				
			|||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							@ -12,7 +12,7 @@
 | 
				
			|||||||
    "/js/clients/payments/checkout-credit-card.js": "/js/clients/payments/checkout-credit-card.js?id=98e406fa8e4db0e93427",
 | 
					    "/js/clients/payments/checkout-credit-card.js": "/js/clients/payments/checkout-credit-card.js?id=98e406fa8e4db0e93427",
 | 
				
			||||||
    "/js/clients/payments/stripe-ach.js": "/js/clients/payments/stripe-ach.js?id=76d8ba6a814b3015e359",
 | 
					    "/js/clients/payments/stripe-ach.js": "/js/clients/payments/stripe-ach.js?id=76d8ba6a814b3015e359",
 | 
				
			||||||
    "/js/clients/payments/stripe-alipay.js": "/js/clients/payments/stripe-alipay.js?id=665ddf663500767f1a17",
 | 
					    "/js/clients/payments/stripe-alipay.js": "/js/clients/payments/stripe-alipay.js?id=665ddf663500767f1a17",
 | 
				
			||||||
    "/js/clients/payments/stripe-credit-card.js": "/js/clients/payments/stripe-credit-card.js?id=5a9eaeb24652ce0e87c9",
 | 
					    "/js/clients/payments/stripe-credit-card.js": "/js/clients/payments/stripe-credit-card.js?id=f1719b79a2bb274d3f64",
 | 
				
			||||||
    "/js/clients/payments/stripe-sofort.js": "/js/clients/payments/stripe-sofort.js?id=08bf4871826e8b18b804",
 | 
					    "/js/clients/payments/stripe-sofort.js": "/js/clients/payments/stripe-sofort.js?id=08bf4871826e8b18b804",
 | 
				
			||||||
    "/js/clients/quotes/action-selectors.js": "/js/clients/quotes/action-selectors.js?id=1b8f9325aa6e8595e7fa",
 | 
					    "/js/clients/quotes/action-selectors.js": "/js/clients/quotes/action-selectors.js?id=1b8f9325aa6e8595e7fa",
 | 
				
			||||||
    "/js/clients/quotes/approve.js": "/js/clients/quotes/approve.js?id=85bcae0a646882e56b12",
 | 
					    "/js/clients/quotes/approve.js": "/js/clients/quotes/approve.js?id=85bcae0a646882e56b12",
 | 
				
			||||||
 | 
				
			|||||||
@ -17,10 +17,18 @@ class StripeCreditCard {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    setupStripe() {
 | 
					    setupStripe() {
 | 
				
			||||||
        this.stripe = Stripe(this.key);
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (this.stripeConnect)
 | 
					        if (this.stripeConnect){
 | 
				
			||||||
            this.stripe.stripeAccount = this.stripeConnect;
 | 
					           // this.stripe.stripeAccount = this.stripeConnect;
 | 
				
			||||||
 | 
					           
 | 
				
			||||||
 | 
					           this.stripe = Stripe(this.key, {
 | 
				
			||||||
 | 
					              stripeAccount: this.stripeConnect,
 | 
				
			||||||
 | 
					            }); 
 | 
				
			||||||
 | 
					           
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        else {
 | 
				
			||||||
 | 
					            this.stripe = Stripe(this.key);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
        this.elements = this.stripe.elements();
 | 
					        this.elements = this.stripe.elements();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user