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
Describe the bug
Call to \Adyen\Service\Checkout\RecurringApi::deleteTokenForStoredPaymentDetails fails with TypeError: Return value must be of type array, string returned, although the request is finished successful
Delete payment method returns empty response with 204 code. That means, the same empty result is returned by Adyen\HttpClient\CurlClient::requestHttp() (empty string or null depending on outputType in config).
Because Adyen\Service::requestHttp() directly returns result of previously mentioned method, it fails because Adyen\Service::requestHttp(): array (has a strict return type array)
To Reproduce
Steps to reproduce the behavior:
Perform a call to \Adyen\Service\Checkout\RecurringApi::deleteTokenForStoredPaymentDetails with usual arguments
Expected behavior
Either return empty array, success result dto, or at least no error :)
Additional context
Add any other context about the problem here.
Currently we are at package version: v15.4.0. Although there is a newer version the package, the requestHttp() method is similar
The text was updated successfully, but these errors were encountered:
@michaelpaul thanks for taking care about this. Do you think we could replicate/have similar fix for previous major version ?
So we also allow other package users (still using lower version) to benefit from functionality, while still following their own timetable for smooth migration plan from Arrays -> DTOs ( instead of rushing and repriotize other things for upgrading to the new major version, only for this fix)
I can port the fix on the v15 and prepare a pull request
Describe the bug
Call to
\Adyen\Service\Checkout\RecurringApi::deleteTokenForStoredPaymentDetails
fails withTypeError: Return value must be of type array, string returned
, although the request is finished successfulDelete payment method returns empty response with 204 code. That means, the same empty result is returned by
Adyen\HttpClient\CurlClient::requestHttp()
(empty string or null depending onoutputType
in config).Because
Adyen\Service::requestHttp()
directly returns result of previously mentioned method, it fails becauseAdyen\Service::requestHttp(): array
(has a strict return typearray
)To Reproduce
Steps to reproduce the behavior:
\Adyen\Service\Checkout\RecurringApi::deleteTokenForStoredPaymentDetails
with usual argumentsExpected behavior
Either return empty array, success result dto, or at least no error :)
Additional context
Add any other context about the problem here.
Currently we are at package version:
v15.4.0
. Although there is a newer version the package, therequestHttp()
method is similarThe text was updated successfully, but these errors were encountered: