@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.
@endif
@endsection
@if($payment->status === 'PENDING')
@push('scripts')
@endpush
@endif