Adapt views

This commit is contained in:
Lars Kusch 2021-10-09 10:19:12 +02:00
parent 780b400947
commit ed393d837f
2 changed files with 12 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class ProcessGiroPay {
{ {
payment_method: { payment_method: {
billing_details: { billing_details: {
name: "", name: document.getElementById("giropay-name").value(),
}, },
}, },
return_url: document.querySelector( return_url: document.querySelector(

View File

@ -0,0 +1,11 @@
<div id="stripe--payment-container">
@component('portal.ninja2020.components.general.card-element', ['title' => ctrans('texts.name')])
<label for="giropay-name">
<input class="input w-full" id="giropay-name" type="text" placeholder="{{ ctrans('texts.bank_account_holder') }}">
</label>
<div id="mandate-acceptance">
<input type="checkbox" id="giropay-mandate-acceptance" class="input mr-4">
<label for="giropay-mandate-acceptance">{{ctrans('texts.giropay_law')}}</label>
</div>
@endcomponent
</div>