1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 15:13:29 +01:00
invoiceninja/resources/views/payments/braintree/paypal.blade.php

45 lines
1.7 KiB
PHP
Raw Normal View History

2016-06-20 16:14:43 +02:00
@extends('payments.payment_method')
@section('payment_details')
@parent
{!! Former::open($url) !!}
<h3>{{ trans('texts.paypal') }}</h3>
<div>{{$details->firstName}} {{$details->lastName}}</div>
<div>{{$details->email}}</div>
<input type="hidden" name="sourceToken" value="{{$sourceId}}">
<input type="hidden" name="first_name" value="{{$details->firstName}}">
<input type="hidden" name="last_name" value="{{$details->lastName}}">
<input type="hidden" name="email" value="{{$details->email}}">
<p>&nbsp;</p>
@if (isset($amount) && $client && $account->showTokenCheckbox())
<input id="token_billing" type="checkbox" name="token_billing" {{ $account->selectTokenCheckbox() ? 'CHECKED' : '' }} value="1" style="margin-left:0px; vertical-align:top">
<label for="token_billing" class="checkbox" style="display: inline;">{{ trans('texts.token_billing_braintree_paypal') }}</label>
<span class="help-block" style="font-size:15px">
{!! trans('texts.token_billing_secure', ['link' => link_to('https://www.braintreepayments.com/', 'Braintree', ['target' => '_blank'])]) !!}
</span>
@endif
<p>&nbsp;</p>
<center>
@if(isset($amount))
{!! Button::success(strtoupper(trans('texts.pay_now') . ' - ' . $account->formatMoney($amount, $client, CURRENCY_DECORATOR_CODE) ))
2016-06-20 16:14:43 +02:00
->submit()
->large() !!}
@else
{!! Button::success(strtoupper(trans('texts.add_paypal_account') ))
->submit()
->large() !!}
@endif
</center>
2016-07-13 15:34:26 +02:00
{!! Former::close() !!}
2016-06-20 16:14:43 +02:00
@stop