Commit af6231e6 authored by Davide Aprea's avatar Davide Aprea
Browse files

add missing parameters

parent 970bf527
......@@ -149,6 +149,8 @@ class MailController extends Controller
$name = $company;
}
$name = trim($name);
$data = [
'name' => $name,
'iban' => $request->input('iban', ''),
......@@ -231,6 +233,8 @@ class MailController extends Controller
# email
# iban
# bic
# amount
# frequency
# message
$message = "\r\nName: " . $name;
......@@ -254,20 +258,20 @@ class MailController extends Controller
"api_key" => env("TICKET_API_KEY", ''),
"key" => env("TICKET_SITE_KEY", ''),
"json" => 1,
"iban" => $iban,
"iban" => $iban->MachineFormat(),
"bic" => $bic,
"amount" => $betrag,
"frequency" => $frequency,
"first_name" => $firstname,
"last_name" => $lastname,
"email" => $email,
"mgkey" => $key,
"message" => $nachricht
];
if($request->input('person') === 'private') {
$postdata['first_name'] = $firstname;
$postdata['last_name'] = $lastname;
} elseif($request->input('person') === 'company') {
$postdata['company'] = $company;
$postdata['business_name'] = $company;
}
$postdata = http_build_query($postdata);
......
......@@ -96,7 +96,7 @@
<p>{!! trans('spende.lastschrift.2') !!}</p>
<input type="hidden" name="dt" value="{{ md5(date('Y') . date('m') . date('d')) }}">
<div id="input-picker" class="form-group donation-form-group">
<input type="radio" id="private" name="person" value="private" checked><label for="private">{{trans('spende.lastschrift.private')}}</label>
<input type="radio" required="required" id="private" name="person" value="private" checked="checked"><label for="private">{{trans('spende.lastschrift.private')}}</label>
<div id="input-private" class="show-on-input-checked form-inline">
<input type="text" class="form-control" id="firstname" name="firstname" placeholder="{!! trans('spende.lastschrift.3f.placeholder') !!}" @if(isset($data['firstname'])) value="{{$data['firstname']}}" @endif />
<input type="text" class="form-control" id="lastname" name="lastname" placeholder="{!! trans('spende.lastschrift.3l.placeholder') !!}" @if(isset($data['lastname'])) value="{{$data['lastname']}}" @endif />
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment