Skip to content
← Back to activity

Immutable solution version

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

Version 1Sign in to save

Complete solution

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.

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.

Context: 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.

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 1 · 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>