You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using Trustly as a payment method with the 'Auto capture' setting enabled and have encountered the following issue.
After the payment was made, the order moved from the 'pending' to the 'processing' state/status, but no invoice was created.
I suspect the issue lies in the callback process. Right after the payment is made, we receive a callback from Quickpay confirming the 'authorize' operation (it can be 'capture' operation as well). This triggers an attempt to create an invoice and initiates an API request to perform the capture operation. The 'capture online' option is hardcoded in Controller/Payment/Callback.php. However, the API response we receive consistently returns the following error:
{
"message": "Unsupported operation type",
"data": null,
"errors": {}
}
Result
As a result, an exception is thrown, leaving no invoice created. However, the order status changes, and the transaction data is saved. Attempts to cancel the order lead to the same error: 'Unsupported operation type.'
I have already contacted the QuickPay support team, and they said:
"Due to the payment being made as a Trustly payment, the payments with Trustly have auto-capture due to the acquirer setup Trustly has, so the payment has already been captured and can, therefore, not be captured again."
The text was updated successfully, but these errors were encountered:
Preconditions
Magento ver. 2.4.6-p8
QuickPay ver. 2.4.5, 2.4.6
Description
We are using Trustly as a payment method with the 'Auto capture' setting enabled and have encountered the following issue.
After the payment was made, the order moved from the 'pending' to the 'processing' state/status, but no invoice was created.
I suspect the issue lies in the callback process. Right after the payment is made, we receive a callback from Quickpay confirming the 'authorize' operation (it can be 'capture' operation as well). This triggers an attempt to create an invoice and initiates an API request to perform the capture operation. The 'capture online' option is hardcoded in Controller/Payment/Callback.php. However, the API response we receive consistently returns the following error:
{
"message": "Unsupported operation type",
"data": null,
"errors": {}
}
Result
As a result, an exception is thrown, leaving no invoice created. However, the order status changes, and the transaction data is saved. Attempts to cancel the order lead to the same error: 'Unsupported operation type.'
I have already contacted the QuickPay support team, and they said:
"Due to the payment being made as a Trustly payment, the payments with Trustly have auto-capture due to the acquirer setup Trustly has, so the payment has already been captured and can, therefore, not be captured again."
The text was updated successfully, but these errors were encountered: