You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When users are redirected to pay.php after initiating a checkout process, the screen is completely white, and neither the Razorpay button nor the payment form is visible. This prevents users from completing the payment process.
To Reproduce
Steps to reproduce the behaviour:
Select items from restaurant menu.
Click on checkout button.
Fill the details on checkout form.
Click on place order button.
You'll get redirected to pay.php and encounter a white screen.
Step 1:
Step 2:
Step 3:
Expected behavior
Instead of getting a white screen, a razorpay payment form should appear.
Screenshots
Already added above.
Desktop (please complete the following information):
OS: [Ubuntu]
Browser [Brave]
Version [v1.70.123
Additional context
This can give a bad user experience and stop a workflow. Solving this issue could be a step towards creating a proper flow.
Possible reasons according to me
<form action="/homemade/verify.php" method="POST">
<script src="https://checkout.razorpay.com/v1/checkout.js" data-key="<?php echo $data['key']?>"
data-amount="<?php echo $data['amount']?>" data-currency="INR" data-name="<?php echo $data['name']?>"
data-image="<?php echo $data['image']?>" data-description="<?php echo $data['description']?>"
data-prefill.name="<?php echo $data['prefill']['name']?>"
data-prefill.email="<?php echo $data['prefill']['email']?>"
data-prefill.contact="<?php echo $data['prefill']['contact']?>"
data-notes.shopping_order_id="<?php echo $_SESSION['orderid'] ?>" data-order_id="<?php echo $data['order_id']?>"
<?php if ($displayCurrency !== 'INR') { ?> data-display_amount="<?php echo $data['display_amount']?>" <?php } ?>
<?php if ($displayCurrency !== 'INR') { ?> data-display_currency="<?php echo $data['display_currency']?>"
<?php } ?>>
</script>
<!-- Any extra fields to be submitted with the form but not sent to Razorpay -->
<input type="hidden" name="shopping_order_id" value="<?php echo $_SESSION['orderid'] ?>">
</form>
The script tag in the form might not be rendering the button or proper javascript needed.
As needed js in not loaded, it is causing error to activate the button click.
Improvement that can be done
Instead of rendering the button and click it using javascript, use latest code to directly render the form.
@Vimall03 I would like to work on this issue under "gssoc-ext" and "hacktoberfest". I appreciate you if you can assign a level 2 or level 3 label on this, as it took bit more efforts to brainstorm this issue and find an optimal solution. Thank you!
The text was updated successfully, but these errors were encountered:
🎉 Thank you for your interest in contributing to this repository! Please wait while we review and assign this issue to you. In the meantime, feel free to ⭐ the repo to stay updated on future developments.
Describe the bug
When users are redirected to pay.php after initiating a checkout process, the screen is completely white, and neither the Razorpay button nor the payment form is visible. This prevents users from completing the payment process.
To Reproduce
Steps to reproduce the behaviour:
You'll get redirected to pay.php and encounter a white screen.
Step 1:
![image](https://private-user-images.githubusercontent.com/74826173/375378838-7c714ee0-f400-4b24-98ea-fe7b11ac325d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2ODk0NTUsIm5iZiI6MTczOTY4OTE1NSwicGF0aCI6Ii83NDgyNjE3My8zNzUzNzg4MzgtN2M3MTRlZTAtZjQwMC00YjI0LTk4ZWEtZmU3YjExYWMzMjVkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDA2NTkxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTkwNmRkMzllZDJkNzRjOWU4OWJmZGM5ZjZhODlhOTU2MTRjMmFkZmNlZDJkMzQyZWNhMjQxZDM0MDA5MWVkZDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Lg6b66Q6Z4YVF2uwapmogYdwIBHsnkcuk2EvQuSel80)
Step 2:
![image](https://private-user-images.githubusercontent.com/74826173/375378988-b36d3503-e577-4d9a-8d05-3d8c053d5a06.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2ODk0NTUsIm5iZiI6MTczOTY4OTE1NSwicGF0aCI6Ii83NDgyNjE3My8zNzUzNzg5ODgtYjM2ZDM1MDMtZTU3Ny00ZDlhLThkMDUtM2Q4YzA1M2Q1YTA2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDA2NTkxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFmMDc4MTAwMGY1ZmM0ZjY0NzNhNTAxMmZkNzNjMDE3ZDBlZDY0Y2Q2NWU3OGJkMjBkODc1MjJiZGUwNjU5MzQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.6Rlban7McuM7DYVup1CvH5zJtbbz0eRmaT6ghK5ocHA)
Step 3:
![Screenshot from 2024-10-10 18-16-45](https://private-user-images.githubusercontent.com/74826173/375380739-ec1396fd-a7f8-433e-8903-512d2f986c1a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2ODk0NTUsIm5iZiI6MTczOTY4OTE1NSwicGF0aCI6Ii83NDgyNjE3My8zNzUzODA3MzktZWMxMzk2ZmQtYTdmOC00MzNlLTg5MDMtNTEyZDJmOTg2YzFhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDA2NTkxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMyYWNiYzU0ZGI0NDc5NGE5NzA0OGJhZThjNDBmMTZhYmQ4NzBkNDA5NDBhM2M3ODk4MTk1ZWE3Njg4ZjNlYTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.2jR6FbqkY2Hcwiy-kbQ9XXwP5crXfpgYt66ZgJDlxKY)
Expected behavior
Instead of getting a white screen, a razorpay payment form should appear.
Screenshots
Already added above.
Desktop (please complete the following information):
Additional context
This can give a bad user experience and stop a workflow. Solving this issue could be a step towards creating a proper flow.
Possible reasons according to me
The script tag in the form might not be rendering the button or proper javascript needed.
As needed js in not loaded, it is causing error to activate the button click.
Improvement that can be done
Instead of rendering the button and click it using javascript, use latest code to directly render the form.
@Vimall03 I would like to work on this issue under "gssoc-ext" and "hacktoberfest". I appreciate you if you can assign a level 2 or level 3 label on this, as it took bit more efforts to brainstorm this issue and find an optimal solution. Thank you!
The text was updated successfully, but these errors were encountered: