Abo: Doppelbestellung verhindern, Payment-Link loeschen & Pending-Status
Verhindert das Anlegen eines zweiten Abos (eigenes oder Kundenabo) wenn bereits eines initiiert ist bzw. ein offener Abo-Payment-Link existiert (redirectIfAboAlreadyInitiated). Payment-Links koennen jetzt geloescht werden, abgesichert ueber canDeleteInstance + Shop-Zugehoerigkeit, mit Erfolgs-/Fehler-Flash. Kundenabo-Uebersicht zeigt den Pending-Initial- Payment-Status (wartend / in Bearbeitung / fehlgeschlagen). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
42ef4dd1c6
commit
2b2847add1
7 changed files with 386 additions and 23 deletions
|
|
@ -5,6 +5,17 @@
|
|||
{{ __('navigation.payment_links') }} / {{ __('navigation.overview') }}
|
||||
</h4>
|
||||
|
||||
@if (Session::has('alert-success'))
|
||||
<div class="alert alert-success">
|
||||
{{ Session::get('alert-success') }}
|
||||
</div>
|
||||
@endif
|
||||
@if (Session::has('alert-error'))
|
||||
<div class="alert alert-danger">
|
||||
{{ Session::get('alert-error') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
{{-- Status-Legende --}}
|
||||
<div class="card mb-3">
|
||||
<div class="card-body">
|
||||
|
|
@ -68,4 +79,4 @@
|
|||
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
@endsection
|
||||
|
|
|
|||
|
|
@ -106,6 +106,17 @@
|
|||
<span class="badge badge-outline-secondary">
|
||||
{{ __('tables.customer') }} #{{ $index + 1 }}
|
||||
</span>
|
||||
@if($abo->isPendingInitialPayment())
|
||||
<div class="small text-warning mt-1">
|
||||
@if($abo->hasFailedInitialPayment())
|
||||
{{ __('abo.pending_payment_failed_title') }}
|
||||
@elseif($abo->hasInitialPaymentStatus())
|
||||
{{ __('abo.pending_payment_processing_title') }}
|
||||
@else
|
||||
{{ __('abo.pending_payment_waiting_title') }}
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
<strong class="text-primary">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue