Add link to WePay's privacy policy

This commit is contained in:
Hillel Coren 2018-04-23 13:02:27 +03:00
parent e2df3b64d1
commit 5c31818cc7
2 changed files with 9 additions and 7 deletions

View File

@ -85,10 +85,13 @@
->text(trans('texts.enable_ach')) ->text(trans('texts.enable_ach'))
->value(1) !!} ->value(1) !!}
{!! Former::checkbox('tos_agree')->label(' ')->text(trans('texts.wepay_tos_agree', {!! Former::checkbox('tos_agree')->label(' ')
['link'=>'<a id="wepay-tos-link" href="https://go.wepay.com/terms-of-service-us" target="_blank">'.trans('texts.wepay_tos_link_text').'</a>'] ->text(trans('texts.wepay_payment_tos_agree', [
))->value('true') 'terms' => '<a href="https://go.wepay.com/terms-of-service" target="_blank">'.trans('texts.terms_of_service').'</a>',
->inlineHelp('standard_fees_apply') !!} 'privacy_policy' => '<a href="https://go.wepay.com/privacy-policy" target="_blank">'.trans('texts.privacy_policy').'</a>',
]))
->value('true')
->inlineHelp('standard_fees_apply') !!}
</div> </div>
@ -178,7 +181,6 @@
var country = $('#wepay-country input:checked').val(); var country = $('#wepay-country input:checked').val();
if (country) { if (country) {
$('#wepay-accept-debit').toggle(country == 'CA'); $('#wepay-accept-debit').toggle(country == 'CA');
$('#wepay-tos-link').attr('href', 'https://go.wepay.com/terms-of-service-' + country.toLowerCase());
$('#canadaFees').toggle(country == 'CA'); $('#canadaFees').toggle(country == 'CA');
} }
} }

View File

@ -18,8 +18,8 @@
{!! Former::checkbox('tos_agree') {!! Former::checkbox('tos_agree')
->text(trans('texts.wepay_payment_tos_agree', [ ->text(trans('texts.wepay_payment_tos_agree', [
'terms' => '<a href="https://go.wepay.com/terms-of-service-us" target="_blank">'.trans('texts.terms_of_service').'</a>', 'terms' => '<a href="https://go.wepay.com/terms-of-service" target="_blank">'.trans('texts.terms_of_service').'</a>',
'privacy_policy' => '<a href="https://go.wepay.com/privacy-policy-us" target="_blank">'.trans('texts.privacy_policy').'</a>', 'privacy_policy' => '<a href="https://go.wepay.com/privacy-policy" target="_blank">'.trans('texts.privacy_policy').'</a>',
])) ]))
->help(trans('texts.payment_processed_through_wepay')) ->help(trans('texts.payment_processed_through_wepay'))
->label(' ') ->label(' ')