question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Test mode success response object does not contain razorpay_signature

See original GitHub issue

I am trying to make payment in the test mode and the payment is successfully made. However, I am receiving only razorpay_payment_id in the response from the handler function. Is this expected behavior in the test mode or am I missing any parameters? If this is expected behavior, please me understand the testing process for verification during development

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
ganeshrvelcommented, May 19, 2020

If anyone else is wondering why these values are missing in the response, just pass the order_id in the options object.

Something like this:

<html>
  <script src="https://checkout.razorpay.com/v1/checkout.js" />
  <script>
    function razorpay() {
      const options = {
        key: "our_key",
        amount: 100,
        name: "<App name>",
        description: "Desc",
        currency: this.currency,
        order_id: 'order_dfddds68478383', //<------- add this line

        handler: async (response) => {
          const orderId = response.razorpay_order_id;
          const paymentId = response.razorpay_payment_id;
          const signature = response.razorpay_signature;
        },

        prefill: {
          name: "name",
          email: "email",
          contact: "contact",
        },
      };

      const razorpay = new window.Razorpay(options);

      razorpay.open();
    }
  </script>
</html>
0reactions
ankitdas13commented, Nov 30, 2022

Closing this issue for now, due to not getting any response also this issue is not related to this sdk . But if someone is facing the same issue you can check this doc for checkout integration.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Errors | Razorpay Docs
Know about errors returned in the API responses from Razorpay. Razorpay APIs, when fired, can have either a successful response or a failure ......
Read more >
Razorpay signature verification not happening as SHA256 ...
My backend is in NodeJS and here is how I am creating the digest. const crypto = require("crypto"); var generatedSignature = crypto .createHmac( ......
Read more >
Integrating Razorpay in React. - Medium
If there is no response from the bank in 10 minutes (in the case of Razorpay) the payment ... Get your API keys...
Read more >
Payment Error Codes - ISN
CODE TEXT DESCIPTION I00001 Successful. The request was processed successfu... I00002 The subscription has already been canceled. The subscription has already been ca... I00003 The record...
Read more >
Razorpay Payment Integration using Node.js - GeeksforGeeks
Provide an object containing key_id and key_secret to the ... Below is the successfully returned response from the Razorpay server.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found