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.

Unable to capture payment

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
mavvverickcommented, Mar 20, 2018

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.

0reactions
vishnusureshperumbavoorcommented, May 2, 2022

connect to internet

Read more comments on GitHub >

github_iconTop Results From Across the Web

Capturing payments - Shopify Help Center
From the Shopify app , tap Orders. · Tap the order that you want to capture payment for. · In the Authorized section,...
Read more >
CAPTURE_FAILED and REFUND_FAILED reasons
In some cases, a capture fails because something is configured incorrectly on your Adyen account. This affects all payments processed through your account,...
Read more >
Resolving Credit Card Capture Transaction Failure
If the order flow is configured to charge a payment card in two transactions, the following situation is possible. After successful pre-authorization, a...
Read more >
Unable to capture funds (PayPal) - WordPress.org
You should be able to capture funds from the Order Details page. You would just need to change the payment status from On...
Read more >
Shopify error: "Payment not captured" - Return Magic
This means that there is no transaction linked to the order. There is a couple of possible causes for this error:
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