order_payment.blade.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title></title>
  5. <link rel="stylesheet" href="{{ static_asset('assets/css/vendors.css') }}">
  6. <link rel="stylesheet" href="{{ static_asset('assets/css/aiz-core.css') }}">
  7. <link rel="stylesheet" href="{{ static_asset('assets/css/custom-style.css') }}">
  8. </head>
  9. <body>
  10. <section class="py-4 mb-4 bg-light">
  11. <div class="container text-center">
  12. <form action="{!!route('api.razorpay.payment')!!}" method="POST" id='rozer-pay' style="display: none;">
  13. <!-- Note that the amount is in paise = 50 INR -->
  14. <!--amount need to be in paisa-->
  15. <script src="https://checkout.razorpay.com/v1/checkout.js"
  16. data-key="{{ env('RAZOR_KEY') }}"
  17. data-amount={{round($combined_order->grand_total) * 100}}
  18. data-buttontext=""
  19. data-name="{{ env('APP_NAME') }}"
  20. data-description="Cart Payment"
  21. data-image="{{ uploaded_asset(get_setting('header_logo')) }}"
  22. data-prefill.name= "{{ $user->name}}"
  23. data-prefill.email= "{{ $user->email}}"
  24. data-theme.color="#ff7529">
  25. </script>
  26. <input type="hidden" name="_token" value="{!!csrf_token()!!}">
  27. </form>
  28. </div>
  29. </section>
  30. <!-- SCRIPTS -->
  31. <script src="{{ static_asset('assets/js/vendors.js') }}"></script>
  32. <script type="text/javascript">
  33. $(document).ready(function(){
  34. $('#rozer-pay').submit()
  35. });
  36. </script>
  37. </body>
  38. </html>