<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Pay with <?php echo e($output['currency']->name); ?></title>
</head>
<body>

    <script src="https://checkout.razorpay.com/v1/checkout.js"></script>

    <script>
        var options = {
            "key": "<?php echo e($output['key']); ?>", // Enter the Key ID generated from the Dashboard
            "amount": "<?php echo e(get_amount($output['amount']->total_payable_amount, null, 2) * 100); ?>", // Amount is in currency subunits. Default currency is INR. Hence, 50000 refers to 50000 paise
            "currency": "<?php echo e($output['currency']->currency_code); ?>",
            "name": "<?php echo e($basic_settings->site_name); ?>", //your business name
            "description": "Payment With " + "<?php echo e($output['currency']->name); ?>",
            "image": "<?php echo e(get_logo()); ?>",
            "order_id": "<?php echo e($output['order_id']); ?>", //This is a sample Order ID. Pass the `id` obtained in the response of Step 1
            "callback_url": "<?php echo $output['callback_url']; ?>",
            "prefill": { //We recommend using the prefill parameter to auto-fill customer's contact information especially their phone number
                "name": "<?php echo e($output['user']->fullname); ?>", //your customer's name
                "email": "<?php echo e($output['user']->email); ?>",
                "contact": "<?php echo e($output['user']->full_mobile); ?>" //Provide the customer's phone number for better conversion rates
            },
            "theme": {
                "color": "<?php echo e($basic_settings->base_color); ?>"
            },
            "modal": {
                "ondismiss": function() {
                    // redirect to cancel URL
                    let cancelURL = "<?php echo $output['cancel_url']; ?>";
                    window.location.href = cancelURL;
                }
            }
        };

        var rzp1 = new Razorpay(options);

        window.addEventListener("load", () => {
            rzp1.open();
        });

    </script>

</body>
</html>
<?php /**PATH D:\xamp_8.2\htdocs\salonhub_project\salonhub\resources\views/payment-gateway/btn-pay/razorpay.blade.php ENDPATH**/ ?>