@extends('layouts.app') @section('title', 'Payment Status') @push('head') @endpush @section('content')
{{-- ── PENDING STATE ── --}} @if($payment->status === 'PENDING')
šŸ“±
Waiting for Approval
A push notification has been sent to {{ $payment->customer_phone }}.
Please open your MoMo app and approve the payment of ${{ number_format($payment->amount,2) }} {{ $payment->currency }}.
Amount ${{ number_format($payment->amount,2) }} {{ $payment->currency }}
Reference {{ $payment->momo_reference_id }}
Order {{ $payment->order->reference ?? '—' }}
Checking payment status in 10s…
{{-- ── SUCCESSFUL STATE ── --}} @elseif($payment->status === 'SUCCESSFUL') āœ…
Payment Successful!
Your payment has been confirmed. Your order is now being processed.
Amount Paid ${{ number_format($payment->amount,2) }} {{ $payment->currency }}
Order Reference {{ $payment->order->reference ?? '—' }}
@if($payment->momo_transaction_id)
Transaction ID {{ $payment->momo_transaction_id }}
@endif
Continue Shopping → {{-- ── FAILED STATE ── --}} @else āŒ
Payment Failed
The payment was not approved or was declined. Your cart has been restored — please try again.
šŸ”„ Try Again šŸ’¬ Pay via WhatsApp
@endif
@endsection @if($payment->status === 'PENDING') @push('scripts') @endpush @endif