sdk-php icon indicating copy to clipboard operation
sdk-php copied to clipboard

response types incorrect in 2.0.2

Open Craig-CyberNY opened this issue 4 years ago • 1 comments

The change in 2.0.2 to lib/net/authorize/api/controller/CreateCustomerProfileFromTransactionController.php changed the response type from:

'net\authorize\api\contract\v1\CreateCustomerProfileResponse';

to

'net\authorize\api\contract\v1\CreateCustomerProfileFromTransactionResponse';

but 'net\authorize\api\contract\v1\CreateCustomerProfileFromTransactionResponse'; doesn't exist.

You will see the same problem in lib/net/authorize/api/controller/GetTransactionListForCustomerController.php

$responseType = 'net\authorize\api\contract\v1\GetTransactionListResponse';

changed to:

$responseType = 'net\authorize\api\contract\v1\GetTransactionListForCustomerResponse';

but GetTransactionListForCustomerResponse doesn't exist.

Craig-CyberNY avatar Apr 09 '21 23:04 Craig-CyberNY

Seeing this as well. Seems like a simple oversight when some of the classes were renamed and a lack of testing of at least the PHP CreateCustomerProfileFromTransactionController class. Don't see how it is usable at all.

Surprised this has not been addressed in months. Had to skip the 2.0.2 version of the code.

krabsheva avatar Jun 19 '21 19:06 krabsheva