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
I found out that this use of $response was correct as long as the legacy checkout/checkout-sdk-php v1.0.0 was used.
I realized this by comparing the methods of the $response object used with the methods of the Model class.
Future
I do not know for what reason it turned out that this code still exists, but it causes errors that have to be fixed.
I hope that this will be fixed in future releases.
The text was updated successfully, but these errors were encountered:
andrej22116
changed the title
Model/Api/V3::processPayment method is broken. Using array as object
Model\Api\V3::processPayment method is broken. Using array as object
Apr 5, 2024
The problem
I ran into the following problem: for some reason, the $response array is being used as an object.
The method $this->api->isValidResponse expects an array and it get it, 'cause $this->getPaymentResponse return an array (or null).
The alleged reason
I found out that this use of $response was correct as long as the legacy checkout/checkout-sdk-php v1.0.0 was used.
I realized this by comparing the methods of the $response object used with the methods of the Model class.
Future
I do not know for what reason it turned out that this code still exists, but it causes errors that have to be fixed.
I hope that this will be fixed in future releases.
The text was updated successfully, but these errors were encountered: