diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index b08bcee88ff4..2db5efabd8a5 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -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', diff --git a/resources/views/accounts/account_gateway.blade.php b/resources/views/accounts/account_gateway.blade.php index b433221c011e..2383a548ca2d 100644 --- a/resources/views/accounts/account_gateway.blade.php +++ b/resources/views/accounts/account_gateway.blade.php @@ -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 @@
-
{!! trans('texts.stripe_webhook_help', [ +
{!! trans('texts.stripe_webhook_help', [ 'link'=>''.trans('texts.stripe_webhook_help_link_text').'' - ]) !!}
+ ]) !!}