@extends('layouts.app')
@section('title', 'Payment successful')
@section('content')
@php
$newPaymentUrl = route('payments.create', [], false);
@endphp
Thank you
@if(is_array($receipt) && ($receipt['status'] ?? '') === 'pending')
Your payment has been recorded in the database (pending card processing).
@else
Your payment was processed successfully.
@if($transId !== '')
Please save your confirmation details below for your records.
@endif
@endif
@if(is_array($receipt) && $receipt !== [])
Payment confirmation
@if(! empty($receipt['client_name']))
- Client
- {{ $receipt['client_name'] }}
@endif
@if(! empty($receipt['invoice_number']))
- Invoice number
- {{ $receipt['invoice_number'] }}
@endif
@if(! empty($receipt['record_id']))
- Record ID
- {{ $receipt['record_id'] }}
@endif
@if(! empty($receipt['status']))
- Status
- {{ ($receipt['status'] ?? '') === 'pending' ? 'Pending (saved to database)' : ucfirst((string) $receipt['status']) }}
@endif
- Amount
- ${{ number_format((float) ($receipt['amount'] ?? 0), 2) }} USD
@if(! empty($receipt['paid_at']))
- Date & time
- {{ $receipt['paid_at'] }}
@endif
@if($transId !== '')
- Confirmation number
- {{ $transId }}
@endif
@if(! empty($receipt['auth_code']))
- Authorization code
- {{ $receipt['auth_code'] }}
@endif
@if(is_array($receipt) && ($receipt['status'] ?? '') === 'pending')
This payment is stored in the local payments table. Add Authorize.Net sandbox keys in .env to charge cards and sync to Westrock via savePostedPayment.
@else
You may print this page for your records. Questions about your order? Call {{ config('app.phone', '973-937-8762') }}.
@endif
@else
Your payment was received. Contact us if you need a copy of your receipt.
@if($transId !== '')
Confirmation
- Confirmation number
- {{ $transId }}
@endif
@endif
@endsection