mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Hide duplicate webhook URL
This commit is contained in:
parent
92301ba24d
commit
b6df4ed650
@ -1269,7 +1269,7 @@ $LANG = array(
|
||||
'webhook_url' => 'Webhook URL',
|
||||
'stripe_webhook_help' => 'You must :link.',
|
||||
'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.',
|
||||
'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.',
|
||||
|
@ -138,10 +138,15 @@
|
||||
->value(1) !!}
|
||||
@endif
|
||||
@elseif ($gateway->id == GATEWAY_GOCARDLESS)
|
||||
{!! Former::text('webhook_url')
|
||||
->readonly(true)
|
||||
->value(url(env('WEBHOOK_PREFIX','') . 'payment_hook/' . $account->account_key . '/' . GATEWAY_GOCARDLESS))
|
||||
->help('gocardless_webhook_help_link_text') !!}
|
||||
<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>
|
||||
@endif
|
||||
|
||||
@if ($gateway->getHelp())
|
||||
@ -263,16 +268,6 @@
|
||||
->help(trans('texts.plaid_environment_help')) !!}
|
||||
</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)
|
||||
{!! Former::checkbox('enable_ach')
|
||||
->label(trans('texts.ach'))
|
||||
|
Loading…
Reference in New Issue
Block a user