mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Show webhook URL with GoCardless
This commit is contained in:
parent
aa40120b2c
commit
3804e3daa1
@ -1262,6 +1262,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',
|
||||
'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.',
|
||||
@ -2458,7 +2459,6 @@ $LANG = array(
|
||||
'enable_alipay' => 'Accept Alipay',
|
||||
'enable_sofort' => 'Accept EU bank transfers',
|
||||
'stripe_alipay_help' => 'These gateways also need to be activated in :link.',
|
||||
'gocardless_webhook_help_link_text' => 'add this URL as an endpoint in GoCardless',
|
||||
'calendar' => 'Calendar',
|
||||
'pro_plan_calendar' => ':link to enable the calendar by joining the Pro Plan',
|
||||
|
||||
|
@ -132,6 +132,11 @@
|
||||
->text(trans('texts.braintree_enable_paypal'))
|
||||
->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') !!}
|
||||
@endif
|
||||
|
||||
@if ($gateway->getHelp())
|
||||
@ -231,9 +236,9 @@
|
||||
<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_STRIPE) }}">
|
||||
<div class="help-block"><strong>{!! trans('texts.stripe_webhook_help', [
|
||||
<div class="help-block">{!! trans('texts.stripe_webhook_help', [
|
||||
'link'=>'<a href="https://dashboard.stripe.com/account/webhooks" target="_blank">'.trans('texts.stripe_webhook_help_link_text').'</a>'
|
||||
]) !!}</strong></div>
|
||||
]) !!}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user