@extends('layouts.app') @section('title', 'Checkout') @php $oldMethod = old('method', array_key_first($methods)); $localMethods = config('store.local_transfer_methods'); $oldLocal = old('local_method', array_key_first($localMethods)); @endphp @section('content')

Secure checkout

@if ($errors->any())
Please check the highlighted fields.
@endif
@csrf

1. Contact details

Your receipt and order updates go to this email.

@error('name')

{{ $message }}

@enderror
@error('email')

{{ $message }}

@enderror

2. Payment method

@foreach ($methods as $key => [$label, $desc, $icon]) @endforeach
@error('method')

{{ $message }}

@enderror
Demo checkout: no real payment is taken. Use test card 4242 4242 4242 4242, any future date and any CVC. Never enter a real card here.
@error('card_name')

{{ $message }}

@enderror
@error('card_number')

{{ $message }}

@enderror
@error('card_expiry')

{{ $message }}

@enderror
@error('card_cvc')

{{ $message }}

@enderror
You'll confirm {{ $totals['total_display'] }} with PayPal. In this demo the approval is simulated โ€” nothing is charged.

Send exactly {{ $totals['total_display'] }}

@foreach ($localMethods as $k => $l)

{{ setting('local_'.$k) }}

@endforeach
@error('reference')

{{ $message }}

@enderror

3. Confirm

@error('agree')

{{ $message }}

@enderror
@endsection