Working on gocardless

This commit is contained in:
Hillel Coren 2017-09-07 13:11:17 +03:00
parent ac55d5849f
commit 43e33f5928
2 changed files with 11 additions and 1 deletions

View File

@ -2444,7 +2444,7 @@ $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',
);

View File

@ -191,6 +191,16 @@
->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'))