razorpay-node: Unable to capture payment

I am using version 1.2.0 and trying to make payment using instance.payments.capture, however it throws following error -

(node:5715) Warning: a promise was rejected with a non-error: [object Object]
{ statusCode: undefined, error: undefined }

If I check on the dashboard then under payments tab, I can see the payment getting authorised and using the same payment_id and amount (in paise) if I make the request, it still throws the same error. I have reset the API Key and Secret too before sending a fresh request. But no success. It would be great if at least proper error message is shown so that it will be easier to debug.

Let me know if you want any other details.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

Hi,

Note: Kindly read the document carefully.

Amount: The amount to be captured (should be equal to the authorized amount, in paise)

To authenticate Rs 51.00, input amount as 5100 paise.