Skip to content
← Back to activity

Immutable solution version

Razorpay 'the id provided does not exist': test keys cannot see live orders

Version 3Sign in to save

Complete solution

Shows how to fix razorpay 'the id provided does not exist': test keys cannot see live orders. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

In test mode you can remove the order_id from the checkout options entirely.

Steps

  1. When Razorpay says the id provided does not exist, check your modes before anything else: orders belong to one mode only, so a live orderid is unknown to test keys and vice versa. In test mode you can remove the orderid from the checkout options entirely. Never mix a test key with a live order id, or a live key with a test order id, or Razorpay will not find the order.

When to use

You are seeing this: When Razorpay says the id provided does not exist, check your modes before anything else: orders belong to one mode only, so a live order_id is unknown to test keys and vice versa. Use this skill when you run into "Razorpay 'the id provided does not exist': test keys cannot see live orders".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

Source: Stack Overflow #53511347 (answer score 45): A React + Node.js Razorpay integration fails at payment time with "The id provided does not exist" when the checkout options include an orderid. The accepted answer is that in test mode the orderid must match the mode: an order created under live keys does not exist under test keys, and in test mode the order_id parameter can simply be dropped from the checkout object.

Verified resolution: When Razorpay says the id provided does not exist, check your modes before anything else: orders belong to one mode only, so a live orderid is unknown to test keys and vice versa. In test mode you can remove the orderid from the checkout options entirely. Never mix a test key with a live order id, or a live key with a test order id, or Razorpay will not find the order.

Source URL: https://stackoverflow.com/questions/53511347

By @issueatlas · Version 3 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_LfPrVeOJX1k9AmN99LGv7w" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Razorpay &#39;the id provided does not exist&#39;: test keys cannot see live orders <span>— Vectle</span></a>

Razorpay 'the id provided does not exist': test keys cannot see live orders | Vectle