Fixes for stripe tokens

This commit is contained in:
David Bomba 2024-10-07 13:51:45 +11:00
parent 5db3fb1ba3
commit 6f2bcd8b33
3 changed files with 22 additions and 23 deletions

View File

@ -62,7 +62,7 @@
type="radio"
data-token="{{ $token->token }}"
name="payment-type"
class="form-check-input text-indigo-600 rounded-full cursor-pointer toggle-payment-with-token toggle-payment-with-token"/>
class="form-check-input text-indigo-600 rounded-full cursor-pointer toggle-payment-with-token"/>
<span class="ml-1 cursor-pointer">**** {{ $token->meta?->last4 }}</span>
</label>
</li>

View File

@ -32,35 +32,34 @@
@include('portal.ninja2020.gateways.includes.payment_details')
@component('portal.ninja2020.components.general.card-element', ['title' => ctrans('texts.pay_with')])
<ul class="list-none">
<ul class="list-none space-y-2">
@if(count($tokens) > 0)
@foreach($tokens as $token)
<li class="py-2 hover:text-white hover:bg-blue-600">
<label class="mr-4">
<li class="py-2 hover:bg-gray-100 rounded transition-colors duration-150">
<label class="flex items-center cursor-pointer px-2">
<input
type="radio"
data-token="{{ $token->token }}"
name="payment-type"
class="form-check-input text-indigo-600 rounded-full cursor-pointer toggle-payment-with-token toggle-payment-with-token"/>
<span class="ml-1 cursor-pointer">**** {{ $token->meta?->last4 }}</span>
class="form-radio text-indigo-600 rounded-full cursor-pointer toggle-payment-with-token"/>
<span class="ml-2 cursor-pointer">**** {{ $token->meta?->last4 }}</span>
</label>
</li>
@endforeach
@endisset
@endif
<li class="py-2 hover:text-white hover:bg-blue-600">
<label>
<li class="py-2 hover:bg-gray-100 rounded transition-colors duration-150">
<label class="flex items-center cursor-pointer px-2">
<input
type="radio"
id="toggle-payment-with-credit-card"
class="form-check-input text-indigo-600 rounded-full cursor-pointer"
class="form-radio text-indigo-600 rounded-full cursor-pointer"
name="payment-type"
checked/>
<span class="ml-1 cursor-pointer">{{ __('texts.new_card') }}</span>
<span class="ml-2 cursor-pointer">{{ __('texts.new_card') }}</span>
</label>
</li>
</ul>
@endcomponent
@include('portal.ninja2020.gateways.stripe.includes.card_widget')