Commit b9f362f8 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Key generation for PayPal Donations now works as expected

parent 45a4db0e
......@@ -406,7 +406,8 @@ class MailController extends Controller
"email" => $data["email"],
"message" => $data["nachricht"],
'first_name' => $data["firstname"],
'last_name' => $data["lastname"]
'last_name' => $data["lastname"],
'transaction_id' => $answer["txn_id"]
];
$postdata = http_build_query($postdata);
......
......@@ -16,33 +16,6 @@
</div>
<div id="content-container">
@if (app('request')->input('method') == "paypal")
<form class="form" action="https://www.sandbox.paypal.com/donate" method="post" target="_top">
<div class="section">
<h3>{!! trans('spende.headline.5') !!}</h3>
<div id="payment-methods">
<a class="payment-label" href="?method=debit">{!! trans('spende.head.lastschrift') !!}</a>
<a class="payment-label" href="?method=bank-transfer">{!! trans('spende.ueberweisung') !!}</a>
<a class="payment-label payment-label-selected" href="?method=paypal">{!! trans('spende.paypal') !!}</a>
</div>
<p><br>{!! trans('spende.paypal.1') !!}</p>
<div class="center-wrapper">
@if (LaravelLocalization::getCurrentLocale() == "de")
<input type="hidden" name="lc" value="{{ Request::getPreferredLanguage([]) }}">
<input type="hidden" name="cmd" value="_s-xclick" />
<input type="hidden" name="hosted_button_id" value="Z3Z7SRD4U2L3N" />
<input type="image" src="{{ action('Pictureproxy@get', ['url' => 'https://www.paypalobjects.com/de_DE/DE/i/btn/btn_donateCC_LG.gif']) }}" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button" />
<img alt="" border="0" src="{{ action('Pictureproxy@get', ['url' => 'https://www.paypal.com/de_DE/i/scr/pixel.gif']) }}" width="1" height="1" />
@else
<input type="hidden" name="lc" value="{{ Request::getPreferredLanguage([]) }}">
<input type="hidden" name="cmd" value="_s-xclick" />
<input type="hidden" name="hosted_button_id" value="Z3Z7SRD4U2L3N" />
<input type="image" src="{{ action('Pictureproxy@get', ['url' => 'https://www.paypalobjects.com/en_US/DK/i/btn/btn_donateCC_LG.gif']) }}" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button" />
<img alt="" border="0" src="{{ action('Pictureproxy@get', ['url' => 'https://www.paypal.com/en_DE/i/scr/pixel.gif']) }}" width="1" height="1" />
@endif
</div>
</div>
</form>
<!--
<form class="form" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<div class="section">
<h3>{!! trans('spende.headline.5') !!}</h3>
......@@ -68,7 +41,7 @@
@endif
</div>
</div>
</form>-->
</form>
@elseif ((app('request')->input('method') == "bank-transfer"))
<div class="section form">
<h3>{!! trans('spende.headline.5') !!}</h3>
......@@ -192,4 +165,4 @@
</div>
</div>
</div>
@endsection
@endsection
\ No newline at end of file
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