Adyen / adyen-magento2

Adyen Payment plugin for Magento2
MIT License
155 stars 211 forks source link

Could not create admin order using credit card payment method. #2644

Closed RomanMoshchytskiy closed 2 months ago

RomanMoshchytskiy commented 4 months ago

Describe the bug Could not create admin order using credit card payment method. Getting the following Error message An error has happened during application run. See exception log for details. With the following log message

[2024-05-30T11:03:31.532883+02:00] main.CRITICAL: Error: Cannot use a scalar value as an array in /vendor/adyen/module-payment/Gateway/Request/CheckoutDataBuilder.php:212

To Reproduce Steps to reproduce the behavior:

  1. Create an admin order
  2. Add some products
  3. As a payment method, use a credit card with the data of the test credit card
  4. Place an order
  5. See error

Expected behavior The order was created successfully.

Magento version 2.4.5-p7

Plugin version 9.5.0

PHP version 8.1

Additional context After updating the plugin to version 9.5.0, we were unable to successfully create an admin order with test credit card data on our staging server. Pay by link and frontend payment methods works fine.

RokPopov commented 3 months ago

Hi @RomanMoshchytskiy,

Thank you for reporting this issue. However, trying to replicate this internally following the steps you provided, we are not able to get to the point where any errors are being thrown. Testing admin orders with Adyen credit test cards, we are able to successfully complete the orders. I would advise debugging the flow before the error is thrown to understand what could cause the issue in your end.

Kind regards, Rok

candemiralp commented 2 months ago

Closing this issue due to inactivity.