# Problem with adyen capture (HTTP Exception)

**URL:** <https://forum.litium.com/t/problem-with-adyen-capture-http-exception/1815>\
**Category:** Questions\
**Tags:** payment, litium-5\
**Created:** [December 15, 2020, 8:54am UTC](https://forum.litium.com/t/problem-with-adyen-capture-http-exception/1815 "2020-12-15T08:54:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Spotonkastebo](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/spotonkastebo/32/717_2.png) [@Spotonkastebo](https://forum.litium.com/u/Spotonkastebo)\
**Post date:** [December 15, 2020, 8:54am UTC](https://forum.litium.com/t/problem-with-adyen-capture-http-exception/1815/1 "2020-12-15T08:54:39Z")

</div>

We have upgraded to the latest version of adyen addon for litium and setup a test environment but have problem triggering capture from litium.

There is no problem creating payments and it looks like sync works since payment are updated in litium if captured in adyen.

Capture mode i set to manual i adyen  
Server communication setting are setup , activated and tested in adyen

When i try to capture payment in Litium we get payment status Capture failed and HTTP Exception is added to payment transaction message list.

I have enabled logging but there isn’t any error logged that i can connect to capture of payment that i can make anything of.

Anyone that have ad the same problem? is it not possible to capture in test or some setting i perhaps have forgotten or missed?

```
2020-12-14 23:46:37.2030 [App:114] [0719735e-8c8d-4ee6-bdad-2b05c90f80b5] [INFO] [] Adyen Trace: Adyen Capture request: - 883607985816412A

{
  "modificationAmount": {
"currency": "DKK",
"value": 120000
  },
  "reference": "LS800207",
  "originalReference": "883607985816412A",
  "merchantAccount": "Denmark",
  "applicationInfo": {
"adyenLibrary": {
  "name": "adyen-dotnet-api-library",
  "version": "5.3.0"
}
  }
}
 
2020-12-14 23:46:37.3593 [App:114] [0719735e-8c8d-4ee6-bdad-2b05c90f80b5] [ERROR] [] Payment completion failed for order LS800207 - 12/14/2020 23:46:37 Adyen: Capture failed. HTTP Exception Litium.Foundation.Modules.ECommerce.Plugins.Payments.PaymentProviderException: 12/14/2020 23:46:37 Adyen: Capture failed. HTTP Exception
   at Litium.AddOns.Adyen.AdyenProvider.CompletePayment(CompletePaymentArgs args, SecurityToken token)
   at Litium.Studio.Accelerator.Utilities.OrderUtilities.CompletePayments(Order order, SecurityToken token)

```

Litium version: 5.6.9

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [December 16, 2020, 9:52am UTC](https://forum.litium.com/t/problem-with-adyen-capture-http-exception/1815/2 "2020-12-16T09:52:31Z")

</div>

This issue was not reproduceable when our people tested, the cause can be network issue. This exception is thrown by Adyen Sdk if WebException appears when sdk tries to make a request to Adyen server.

---

<div class="post-metadata">

**Author:** ![Spotonkastebo](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/spotonkastebo/32/717_2.png) [@Spotonkastebo](https://forum.litium.com/u/Spotonkastebo)\
**Post date:** [January 11, 2021, 1:32pm UTC](https://forum.litium.com/t/problem-with-adyen-capture-http-exception/1815/3 "2021-01-11T13:32:11Z")

</div>

This error was due to that the latest version of the adyen plugin always tries to use api-key even if empty so our username and password we had configured wasn’t used.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/12eddac3b8b661de1db86af10ac8151b571e6fb9.png) [@system](https://forum.litium.com/u/system)\
**Post date:** [February 8, 2021, 1:32pm UTC](https://forum.litium.com/t/problem-with-adyen-capture-http-exception/1815/4 "2021-02-08T13:32:14Z")

</div>

Closed on February 8, 2021, 1:32pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
