'How to capture the razor pay payment modal close event with the below code

    `<script src="https://checkout.razorpay.com/v1/checkout.js"
            data-key="{{ env('RAZOR_KEY') }}"
            data-amount={{round($combined_order->grand_total) * 100}}
            data-buttontext=""
            data-name="{{ env('APP_NAME') }}"
            data-description="Cart Payment"
            data-image="{{ uploaded_asset(get_setting('header_logo')) }}"
            data-prefill.name= {{ Auth::user()->name}}
            data-prefill.email= {{ Auth::user()->email}}
            data-theme.color="#ff7529">
    </script>`

Is there any way to capture modal close event with this code?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source