Clarify Stripe help

This commit is contained in:
Hillel Coren 2020-03-29 07:24:39 +03:00
parent 3308df7fff
commit be00050615
2 changed files with 19 additions and 3 deletions

View File

@ -3477,6 +3477,7 @@ $LANG = array(
'credit_terms' => 'Credit Terms', 'credit_terms' => 'Credit Terms',
'untitled_company' => 'Untitled Company', 'untitled_company' => 'Untitled Company',
'added_company' => 'Successfully added company', 'added_company' => 'Successfully added company',
'supported_events' => 'Supported Events',
); );
return $LANG; return $LANG;

View File

@ -248,9 +248,24 @@
<label class="control-label col-lg-4 col-sm-4">{{ trans('texts.webhook_url') }}</label> <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"> <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) }}"> <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">{!! trans('texts.stripe_webhook_help', [ <div class="help-block">
'link'=>'<a href="https://dashboard.stripe.com/account/webhooks" target="_blank">'.trans('texts.stripe_webhook_help_link_text').'</a>' <p>
]) !!}</div> {!! trans('texts.stripe_webhook_help', [
'link'=>'<a href="https://dashboard.stripe.com/account/webhooks" target="_blank">'.trans('texts.stripe_webhook_help_link_text').'</a>'
]) !!}
</p>
<p>
{{ trans('texts.supported_events') }}
<ul>
<li>charge.failed</li>
<li>charge.succeeded</li>
<li>charge.refunded</li>
<li>customer.source.updated</li>
<li>customer.source.deleted</li>
<li>source.chargeable</li>
</ul>
</p>
</div>
</div> </div>
</div> </div>
</div> </div>