What is Razorpay?
Razorpay is a payments solution in India that allows businesses to access all payment modes including credit card, deb...
For further actions, you may consider blocking this person and/or reporting abuse
This is exactly what i needed, thank you so much
Thanks bro
Thanks for the detailed post
Happy to help you 😄👍
Hi. I am getting undefined values of razorpayOrderId and razorpaySignature from the response while working on test mode. So the payment verification fails in the backend. I have been stuck at this for over a day now. Any help is highly appreciated.
have you solved it?? i have been stuck on the same
// middlewares
app.use(express.json({ extended: false }));
This line helped me when I had similar issue
I'm getting this error for my frontend code and the router for the backend is not even hitting can you help me out with the issue
checkout-frame.modern.js:1
import axios from 'axios'
const Premium = () => {
function loadScript(src) {
return new Promise((resolve) => {
const script = document.createElement("script");
script.src = src;
script.onload = () => {
resolve(true);
};
script.onerror = () => {
resolve(false);
};
document.body.appendChild(script);
});
}
}
export default Premium`
Very detailed post, just what I was looking for. I have never worked with verifying signatures so maybe I missed it but where did you get the string "w2lBtgmeuDUfnJVp43UpcaiT"? Is that something standard or something you decided on, or is it something dynamic?
Any idea how to use the razorpay.createPayment() function from the checkout.razorpay.com/v1/razorpay.js library with React? Been sweating it out from the last two nights to get this working as per below doc:
razorpay.com/docs/payment-gateway/...
The RZP checkout should pop up and stay but it comes momentarily and then redirects to the callback URL. I have tried with the callback URL method as that's the only one I can use with React.
I am pulling my hair out for this one, any help would be greatly appreciated!
Hey, Great Post
I just made a package on npm to intergrate razorpay in your react app.
I would highly appreciate if your give me reviews on it.
npmjs.com/package/react-razorpay
Great article! One question though: Would it be better to have the loadScript run at page load time as opposed to running JIT when the func is activated?
Yeah. That would make the Razorpay popup appear a bit quicker. Thanks for the suggestion.
You don't need to add currency and amount, it will comes with order_id while request for payment.
Thanks for this post
Thanks so much bro , that what I was looking for .
My backend partner is struggling so this article helped him a lot and also me with frontend
i am getting internal server error on creating razorpay instance. can anyone help me
i got an error when i click pay button
Network Error
AxiosError: Network Error
at XMLHttpRequest.handleError (localhost:3000/static/js/bundle.js...)
This is the best razorpay guide thanks alot
I am getting 400 Bad request on hitting the "/success" route. Can someone help me with it?
same,I am getting error at new window.Razorpay(options) as unauthenticated
how can i redirect to success url in razorpay?
thanks man for so much detailed info
What if I want to give the user an option to decide how much he/she wants to pay instead of setting a predefined amount?
do it in the req params
What is the point of using integration , when we can use the pay button with almost no code.
My API key id are secret are showing expired even if I regenerate the keys instantly.
dev-to-uploads.s3.amazonaws.com/up...
Also we need to make use of cors package coz I was getting "Error : Network Error".
displayRazorpay' is not defined
Getting this Error. I have defined it but its not taking