mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 02:27:29 -05:00 
			
		
		
		
	Hide duplicate webhook URL
This commit is contained in:
		
							parent
							
								
									92301ba24d
								
							
						
					
					
						commit
						b6df4ed650
					
				@ -1269,7 +1269,7 @@ $LANG = array(
 | 
				
			|||||||
    'webhook_url' => 'Webhook URL',
 | 
					    'webhook_url' => 'Webhook URL',
 | 
				
			||||||
    'stripe_webhook_help' => 'You must :link.',
 | 
					    'stripe_webhook_help' => 'You must :link.',
 | 
				
			||||||
    'stripe_webhook_help_link_text' => 'add this URL as an endpoint at Stripe',
 | 
					    'stripe_webhook_help_link_text' => 'add this URL as an endpoint at Stripe',
 | 
				
			||||||
    'gocardless_webhook_help_link_text' => 'You must add this URL as an endpoint in GoCardless',
 | 
					    'gocardless_webhook_help_link_text' => 'add this URL as an endpoint in GoCardless',
 | 
				
			||||||
    'payment_method_error' => 'There was an error adding your payment methd. Please try again later.',
 | 
					    'payment_method_error' => 'There was an error adding your payment methd. Please try again later.',
 | 
				
			||||||
    'notification_invoice_payment_failed_subject' => 'Payment failed for Invoice :invoice',
 | 
					    'notification_invoice_payment_failed_subject' => 'Payment failed for Invoice :invoice',
 | 
				
			||||||
    'notification_invoice_payment_failed' => 'A payment made by client :client towards Invoice :invoice failed. The payment has been marked as failed and :amount has been added to the client\'s balance.',
 | 
					    'notification_invoice_payment_failed' => 'A payment made by client :client towards Invoice :invoice failed. The payment has been marked as failed and :amount has been added to the client\'s balance.',
 | 
				
			||||||
 | 
				
			|||||||
@ -138,10 +138,15 @@
 | 
				
			|||||||
                           ->value(1) !!}
 | 
					                           ->value(1) !!}
 | 
				
			||||||
                @endif
 | 
					                @endif
 | 
				
			||||||
			@elseif ($gateway->id == GATEWAY_GOCARDLESS)
 | 
								@elseif ($gateway->id == GATEWAY_GOCARDLESS)
 | 
				
			||||||
				{!! Former::text('webhook_url')
 | 
									<div class="form-group">
 | 
				
			||||||
						->readonly(true)
 | 
							            <label class="control-label col-lg-4 col-sm-4">{{ trans('texts.webhook_url') }}</label>
 | 
				
			||||||
						->value(url(env('WEBHOOK_PREFIX','') . 'payment_hook/' . $account->account_key . '/' . GATEWAY_GOCARDLESS))
 | 
							            <div class="col-lg-8 col-sm-8 help-block">
 | 
				
			||||||
						->help('gocardless_webhook_help_link_text') !!}
 | 
							                <input type="text"  class="form-control" onfocus="$(this).select()" readonly value="{{ URL::to(env('WEBHOOK_PREFIX','').'payment_hook/'.$account->account_key.'/'.GATEWAY_GOCARDLESS) }}">
 | 
				
			||||||
 | 
							                <div class="help-block"><strong>{!! trans('texts.stripe_webhook_help', [
 | 
				
			||||||
 | 
							                'link'=>'<a href="https://manage.gocardless.com/developers" target="_blank">'.trans('texts.gocardless_webhook_help_link_text').'</a>'
 | 
				
			||||||
 | 
							            ]) !!}</strong></div>
 | 
				
			||||||
 | 
							            </div>
 | 
				
			||||||
 | 
							        </div>
 | 
				
			||||||
            @endif
 | 
					            @endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            @if ($gateway->getHelp())
 | 
					            @if ($gateway->getHelp())
 | 
				
			||||||
@ -263,16 +268,6 @@
 | 
				
			|||||||
                    ->help(trans('texts.plaid_environment_help')) !!}
 | 
					                    ->help(trans('texts.plaid_environment_help')) !!}
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
    @elseif (! $accountGateway || $accountGateway->gateway_id == GATEWAY_GOCARDLESS)
 | 
					 | 
				
			||||||
        <div class="form-group">
 | 
					 | 
				
			||||||
            <label class="control-label col-lg-4 col-sm-4">{{ trans('texts.webhook_url') }}</label>
 | 
					 | 
				
			||||||
            <div class="col-lg-8 col-sm-8 help-block">
 | 
					 | 
				
			||||||
                <input type="text"  class="form-control" onfocus="$(this).select()" readonly value="{{ URL::to(env('WEBHOOK_PREFIX','').'payment_hook/'.$account->account_key.'/'.GATEWAY_GOCARDLESS) }}">
 | 
					 | 
				
			||||||
                <div class="help-block"><strong>{!! trans('texts.stripe_webhook_help', [
 | 
					 | 
				
			||||||
                'link'=>'<a href="https://manage.gocardless.com/developers" target="_blank">'.trans('texts.gocardless_webhook_help_link_text').'</a>'
 | 
					 | 
				
			||||||
            ]) !!}</strong></div>
 | 
					 | 
				
			||||||
            </div>
 | 
					 | 
				
			||||||
        </div>
 | 
					 | 
				
			||||||
    @elseif ($accountGateway && $accountGateway->gateway_id == GATEWAY_WEPAY)
 | 
					    @elseif ($accountGateway && $accountGateway->gateway_id == GATEWAY_WEPAY)
 | 
				
			||||||
            {!! Former::checkbox('enable_ach')
 | 
					            {!! Former::checkbox('enable_ach')
 | 
				
			||||||
                        ->label(trans('texts.ach'))
 | 
					                        ->label(trans('texts.ach'))
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user