@php use App\Models\Payment; @endphp
← Course
@if ($errors->any())
{{ $errors->first() }}
@endif

{{ $payment->course?->title }}

{{ $payment->formattedAmount() }}

Pay with {{ $payment->providerLabel() }} · {{ strtoupper($payment->currency) }}

@if ($payment->provider === Payment::PROVIDER_RAZORPAY) @if ($razorpayMock)
@csrf @php $mockPaymentId = 'pay_mock_'.\Illuminate\Support\Str::lower(\Illuminate\Support\Str::random(10)); $orderId = $payment->orderReference(); $mockSignature = hash_hmac('sha256', $orderId.'|'.$mockPaymentId, (string) config('services.razorpay.key_secret')); @endphp

Razorpay mock mode — no real charge.

@else @endif @elseif ($payment->provider === Payment::PROVIDER_STRIPE) @if ($stripeMock)
@csrf

Stripe mock mode — for UAE / international cards (AED/USD).

@else Continue to Stripe @endif @elseif ($payment->provider === Payment::PROVIDER_PAYPAL) @if ($paypalMock)
@csrf

PayPal mock mode — for overseas students.

@else Continue to PayPal @endif @endif