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

Incorrect responseType in CreateCustomerProfileFromTransactionController

Open it-all opened this issue 3 years ago • 4 comments

CreateCustomerProfileFromTransactionResponse does not exist. {An older SDK version used CreateCustomerProfileResponse.}

This problem causes CreateCustomerProfileFromTransactionRequest to fail upon execution.

it-all avatar Aug 16 '22 18:08 it-all

CreateCustomerProfileFromTransactionResponse does not exist same problem = > here "vendor/authorizenet/authorizenet/lib/net/authorize/api/controller/CreateCustomerProfileFromTransactionController.php" you needs to be replaced by :

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

it works on my side

Rbtsv2 avatar Aug 19 '22 10:08 Rbtsv2

$responseType = 'net\authorize\api\contract\v1\CreateCustomerProfileResponse'; seems to work also.

it-all avatar Aug 19 '22 12:08 it-all

yes CreateCustomerPaymentProfileResponse' .. in the response : object(net\authorize\api\contract\v1\CreateCustomerPaymentProfileResponse)#2044 (6) { ["customerProfileId":"net\authorize\api\contract\v1\CreateCustomerPaymentProfileResponse":private]=> string(9) "906645000" ["customerPaymentProfileId":"net\authorize\api\contract\v1\CreateCustomerPaymentProfileResponse":private]=> NULL ["validationDirectResponse":"net\authorize\api\contract\v1\CreateCustomerPaymentProfileResponse":private]=> NULL ["refId":"net\authorize\api\contract\v1\ANetApiResponseType":private]=> NULL ["messages":"net\authorize\api\contract\v1\ANetApiResponseType":private]=> object(net\authorize\api\contract\v1\MessagesType)#2042 (2) { ["resultCode":"net\authorize\api\contract\v1\MessagesType":private]=> string(2) "Ok" ["message":"net\authorize\api\contract\v1\MessagesType":private]=> array(1) { [0]=> object(net\authorize\api\contract\v1\MessagesType\MessageAType)#2034 (2) { ["code":"net\authorize\api\contract\v1\MessagesType\MessageAType":private]=> string(6) "I00001" ["text":"net\authorize\api\contract\v1\MessagesType\MessageAType":private]=> string(11) "Successful." } } } ["sessionToken":"net\authorize\api\contract\v1\ANetApiResponseType":private]=> NULL }

no customerPaymentProfileId.. response NULL for futur transaction its necessary

Rbtsv2 avatar Aug 19 '22 15:08 Rbtsv2

CreateCustomerProfileResponse !!! yes thanks

response : ["customerPaymentProfileIdList":"net\authorize\api\contract\v1\CreateCustomerProfileResponse":private]=> array(1) { [0]=> string(9) "906414742" }

Rbtsv2 avatar Aug 19 '22 15:08 Rbtsv2