2016-06-09 09:56:22 +02:00
|
|
|
@extends('header')
|
|
|
|
|
2017-12-03 09:49:00 +01:00
|
|
|
@section('head')
|
|
|
|
@parent
|
|
|
|
|
|
|
|
<style type="text/css">
|
|
|
|
label.checkbox-inline {
|
|
|
|
padding-left: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
label.checkbox-inline div {
|
|
|
|
padding-left: 20px;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
@stop
|
|
|
|
|
2016-06-09 09:56:22 +02:00
|
|
|
@section('content')
|
|
|
|
@parent
|
|
|
|
|
|
|
|
@include('accounts.nav', ['selected' => ACCOUNT_PAYMENTS])
|
|
|
|
|
|
|
|
{!! Former::open($url)->method($method)->rules(array(
|
|
|
|
'first_name' => 'required',
|
|
|
|
'last_name' => 'required',
|
|
|
|
'email' => 'required',
|
|
|
|
'company_name' => 'required',
|
|
|
|
'tos_agree' => 'required',
|
|
|
|
'country' => 'required',
|
|
|
|
))->addClass('warn-on-exit') !!}
|
|
|
|
|
|
|
|
{!! Former::populateField('company_name', $account->getDisplayName()) !!}
|
|
|
|
|
|
|
|
@if ($account->country)
|
|
|
|
{!! Former::populateField('country', $account->country->iso_3166_2) !!}
|
|
|
|
@endif
|
|
|
|
|
|
|
|
{!! Former::populateField('first_name', $user->first_name) !!}
|
|
|
|
{!! Former::populateField('last_name', $user->last_name) !!}
|
|
|
|
{!! Former::populateField('email', $user->email) !!}
|
|
|
|
{!! Former::populateField('show_address', 1) !!}
|
|
|
|
{!! Former::populateField('update_address', 1) !!}
|
2017-07-04 11:24:49 +02:00
|
|
|
{!! Former::populateField('country', 'US') !!}
|
2016-06-26 18:38:36 +02:00
|
|
|
|
2016-06-09 09:56:22 +02:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h3 class="panel-title">{!! trans('texts.online_payments') !!}</h3>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body form-padding-right">
|
|
|
|
{!! Former::text('first_name') !!}
|
|
|
|
{!! Former::text('last_name') !!}
|
|
|
|
{!! Former::text('email') !!}
|
|
|
|
{!! Former::text('company_name')->help('wepay_company_name_help')->maxlength(255) !!}
|
|
|
|
|
2017-07-04 11:24:49 +02:00
|
|
|
<div id="wepay-country">
|
|
|
|
{!! Former::radios('country')
|
|
|
|
->radios([
|
|
|
|
trans('texts.country_United States') => ['value' => 'US'],
|
|
|
|
trans('texts.country_Canada') => ['value' => 'CA'],
|
2017-07-06 11:45:44 +02:00
|
|
|
trans('texts.country_United Kingdom') => ['value' => 'GB'],
|
2017-07-04 11:24:49 +02:00
|
|
|
]) !!}
|
|
|
|
</div>
|
|
|
|
<div id="wepay-accept-debit" style="display:none">
|
|
|
|
{!! Former::checkbox('debit_cards')
|
|
|
|
->text(trans('texts.accept_debit_cards'))
|
|
|
|
->value(1) !!}
|
|
|
|
|
|
|
|
</div>
|
2016-06-09 09:56:22 +02:00
|
|
|
|
|
|
|
{!! Former::checkbox('show_address')
|
|
|
|
->label(trans('texts.billing_address'))
|
2017-01-09 16:01:51 +01:00
|
|
|
->text(trans('texts.show_address_help'))
|
|
|
|
->value(1) !!}
|
2016-06-09 09:56:22 +02:00
|
|
|
{!! Former::checkbox('update_address')
|
|
|
|
->label(' ')
|
2017-01-09 16:01:51 +01:00
|
|
|
->text(trans('texts.update_address_help'))
|
|
|
|
->value(1) !!}
|
2016-06-09 09:56:22 +02:00
|
|
|
{!! Former::checkboxes('creditCardTypes[]')
|
2017-10-17 10:13:59 +02:00
|
|
|
->label('accepted_card_logos')
|
2016-06-09 09:56:22 +02:00
|
|
|
->checkboxes($creditCardTypes)
|
2017-01-09 16:01:51 +01:00
|
|
|
->class('creditcard-types')
|
2017-12-03 09:49:00 +01:00
|
|
|
->inline()
|
2017-01-09 16:01:51 +01:00
|
|
|
->value(1) !!}
|
2016-06-20 16:14:43 +02:00
|
|
|
{!! Former::checkbox('enable_ach')
|
2016-06-09 09:56:22 +02:00
|
|
|
->label(trans('texts.ach'))
|
2017-01-09 16:01:51 +01:00
|
|
|
->text(trans('texts.enable_ach'))
|
|
|
|
->value(1) !!}
|
2016-06-09 09:56:22 +02:00
|
|
|
|
2018-04-23 12:02:27 +02:00
|
|
|
{!! Former::checkbox('tos_agree')->label(' ')
|
|
|
|
->text(trans('texts.wepay_payment_tos_agree', [
|
|
|
|
'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" target="_blank">'.trans('texts.privacy_policy').'</a>',
|
|
|
|
]))
|
|
|
|
->value('true')
|
|
|
|
->inlineHelp('standard_fees_apply') !!}
|
2017-04-02 21:07:25 +02:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<center>
|
|
|
|
<table id="canadaFees" width="80%" style="border: solid 1px black;display:none;margin-bottom:40px">
|
|
|
|
<tr style="border: solid 1px black">
|
|
|
|
<th colspan="2" style="text-align:center;padding: 4px">
|
|
|
|
Fees Disclosure Box
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
<tr style="border: solid 1px black;vertical-align:top">
|
|
|
|
<td style="border-left: solid 1px black; padding: 8px">
|
|
|
|
<h4>Payment Card Type</h4>
|
|
|
|
(These are the most common domestically issued card types
|
|
|
|
and processing methods. They do not represent all the
|
|
|
|
possible fees and variations that are charged to the
|
|
|
|
merchants.)
|
|
|
|
</td>
|
|
|
|
<td style="padding: 8px">
|
|
|
|
<h4>Processing Method: Card Not Present</h4>
|
|
|
|
(Means that the card/device was not
|
|
|
|
electronically read. Generally, the card
|
|
|
|
information is manually key-entered, e.g. online
|
|
|
|
payment)
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@foreach ([
|
|
|
|
'Visa Consumer Credit',
|
|
|
|
'Visa Infinite',
|
|
|
|
'Visa Infinite Privilege',
|
|
|
|
'Visa Business',
|
|
|
|
'Visa Business Premium',
|
|
|
|
'Visa Corporate',
|
|
|
|
'Visa Prepaid',
|
|
|
|
'Visa Debit',
|
|
|
|
'MasterCard Consumer Credit',
|
|
|
|
'MasterCard World',
|
|
|
|
'MasterCard World Elite',
|
|
|
|
'MasterCard Business/Corporate',
|
|
|
|
'MasterCard Debit',
|
|
|
|
'MasterCard Prepaid',
|
|
|
|
'American Express',
|
|
|
|
] as $type)
|
|
|
|
<tr>
|
|
|
|
<td style="border-left: solid 1px black;padding-left:8px;padding-top:4px;">
|
|
|
|
{{ $type }}
|
|
|
|
</td>
|
|
|
|
<td style="text-align:center">
|
|
|
|
2.9% + CA$0.30
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
<tr style="border: solid 1px black;">
|
|
|
|
<th colspan="2" style="text-align:center;padding: 4px">
|
|
|
|
Other Fees Disclosure Box
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr style="border: solid 1px black;">
|
|
|
|
<td style="border-left: solid 1px black;padding-left:8px;padding-top:4px;">
|
|
|
|
Chargeback
|
|
|
|
</td>
|
|
|
|
<td style="text-align:center">
|
|
|
|
CA$15.00
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</center>
|
2016-06-09 09:56:22 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
<center>
|
2017-10-11 12:02:41 +02:00
|
|
|
{!! Button::normal(trans('texts.cancel'))->large()->asLinkTo(HTMLUtils::previousUrl('/gateways/create'))->appendIcon(Icon::create('remove-circle')) !!}
|
2016-06-09 09:56:22 +02:00
|
|
|
{!! Button::success(trans('texts.sign_up_with_wepay'))->submit()->large() !!}
|
|
|
|
</center>
|
|
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
#other-providers{display:none}
|
|
|
|
#wepay-country .radio{display:inline-block;padding-right:15px}
|
|
|
|
#wepay-country .radio label{padding-left:0}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(function(){
|
|
|
|
$('#wepay-country input').change(handleCountryChange)
|
|
|
|
function handleCountryChange(){
|
|
|
|
var country = $('#wepay-country input:checked').val();
|
2017-04-02 21:07:25 +02:00
|
|
|
if (country) {
|
2016-06-09 09:56:22 +02:00
|
|
|
$('#wepay-accept-debit').toggle(country == 'CA');
|
2017-04-02 21:07:25 +02:00
|
|
|
$('#canadaFees').toggle(country == 'CA');
|
2016-06-09 09:56:22 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
handleCountryChange();
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
2016-06-20 16:14:43 +02:00
|
|
|
<input type="hidden" name="primary_gateway_id" value="{{ GATEWAY_WEPAY }}">
|
2016-06-09 09:56:22 +02:00
|
|
|
{!! Former::close() !!}
|
|
|
|
|
|
|
|
@stop
|