@extends('public.header') @section('head') @parent @if (!empty($braintreeClientToken)) @include('payments.tokenization_braintree') @elseif (isset($accountGateway) && $accountGateway->getPublishableStripeKey()) @include('payments.tokenization_stripe') @elseif (isset($accountGateway) && $accountGateway->gateway_id == GATEWAY_WEPAY) @include('payments.tokenization_wepay') @else @endif @stop @section('content') @include('payments.payment_css') @if($paymentType == PAYMENT_TYPE_STRIPE_ACH) {!! Former::open($url) ->autocomplete('on') ->addClass('payment-form') ->id('payment-form') ->rules(array( 'first_name' => 'required', 'last_name' => 'required', 'account_number' => 'required', 'routing_number' => 'required', 'account_holder_name' => 'required', 'account_holder_type' => 'required', 'authorize_ach' => 'required', )) !!} @else {!! Former::vertical_open($url) ->autocomplete('on') ->addClass('payment-form') ->id('payment-form') ->rules(array( 'first_name' => 'required', 'last_name' => 'required', 'card_number' => 'required', 'expiration_month' => 'required', 'expiration_year' => 'required', 'cvv' => 'required', 'address1' => 'required', 'city' => 'required', 'state' => 'required', 'postal_code' => 'required', 'country_id' => 'required', 'phone' => 'required', 'email' => 'required|email' )) !!} @endif @if ($client) {{ Former::populate($client) }} {{ Former::populateField('first_name', $contact->first_name) }} {{ Former::populateField('last_name', $contact->last_name) }} {{ Former::populateField('email', $contact->email) }} @if (!$client->country_id && $client->account->country_id) {{ Former::populateField('country_id', $client->account->country_id) }} @endif @if (!$client->currency_id && $client->account->currency_id) {{ Former::populateField('currency_id', $client->account->currency_id) }} {{ Former::populateField('currency', $client->account->currency->code) }} @endif @endif @if (Utils::isNinjaDev()) {{ Former::populateField('first_name', 'Test') }} {{ Former::populateField('last_name', 'Test') }} {{ Former::populateField('address1', '350 5th Ave') }} {{ Former::populateField('city', 'New York') }} {{ Former::populateField('state', 'NY') }} {{ Former::populateField('postal_code', '10118') }} {{ Former::populateField('country_id', 840) }} @endif
{{ trans('texts.ach_verification_delay_help') }}
{!! Former::radios('account_holder_type')->radios(array( trans('texts.individual_account') => array('value' => 'individual'), trans('texts.company_account') => array('value' => 'company'), ))->inline()->label(trans('texts.account_holder_type')); !!} {!! Former::text('account_holder_name') ->label(trans('texts.account_holder_name')) !!} {!! Former::select('country_id') ->label(trans('texts.country_id')) ->fromQuery($countries, 'name', 'id') ->addGroupClass('country-select') !!} {!! Former::select('currency') ->label(trans('texts.currency_id')) ->fromQuery($currencies, 'name', 'code') ->addGroupClass('currency-select') !!} {!! Former::text('') ->id('routing_number') ->label(trans('texts.routing_number')) !!}@if (isset($amount) && $client && $account->showTokenCheckbox()) selectTokenCheckbox() ? 'CHECKED' : '' }} value="1" style="margin-left:0px; vertical-align:top"> {!! trans('texts.token_billing_secure', ['link' => link_to('https://www.braintreepayments.com/', 'Braintree', ['target' => '_blank'])]) !!} @endif
@endif