{{-- This page is rendered by the success() method inside Front/PaypalController.php (if making the order PayPal payment is successful) --}} @extends('front.layout.layout') @section('content')

Payment

YOUR PAYMENT HAS BEEN CONFIRMED

Thanks for the Payment. We will process your order very soon.

Your order number is {{ Session::get('order_id') }} and total amount paid is INR {{ Session::get('grand_total') }}

{{-- The Order Number is the order `id` in the `orders` database table. We stored the order id in Session in checkout() method in Front/ProductsController.php --}} {{-- Retrieving Data: https://laravel.com/docs/10.x/session#retrieving-data --}}
@endsection {{-- Forget/Remove some data in the Session after making the PayPal payment --}} @php use Illuminate\Support\Facades\Session; Session::forget('grand_total'); // Deleting Data: https://laravel.com/docs/9.x/session#deleting-data Session::forget('order_id'); // Deleting Data: https://laravel.com/docs/9.x/session#deleting-data Session::forget('couponCode'); // Deleting Data: https://laravel.com/docs/9.x/session#deleting-data Session::forget('couponAmount'); // Deleting Data: https://laravel.com/docs/9.x/session#deleting-data @endphp