-
Notifications
You must be signed in to change notification settings - Fork 403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net\authorize\api\contract\v1\CreateCustomerProfileFromTransactionResponse does not exist #105
Comments
Pl. advise your need for this Response? In case you are looking for response from CreateCustomerProfileFromTransactionController, the actual response type returned is CreateCustomerProfileResponse. Here is the link: The response type you have mentioned does not exist because the API does not return this response. |
ok thanks.... |
I don't understand. I'm doing this:
And I'm getting this error: Class 'net\authorize\api\contract\v1\CreateCustomerProfileFromTransactionResponse' not found But when I manually edit this file https://github.com/AuthorizeNet/sdk-php/blob/master/lib/net/authorize/api/controller/CreateCustomerProfileFromTransactionController.php from this: use net\authorize\api\contract\v1\AnetApiRequestType; class CreateCustomerProfileFromTransactionController extends ApiOperationBase
}` To this: use net\authorize\api\contract\v1\AnetApiRequestType; class CreateCustomerProfileFromTransactionController extends ApiOperationBase
}` it works. Why is it specifying the wrong response type? Or am I missing something very obvious here? Thanks |
BUMP@brianmc I have no idea why this issue is marked as closed it VERY much does NOT work with the composer files as of August 4th, 2021. @growthdyn-luke 's recommendation IS correct and WILL make this API work. Solution (as per Luke): Manually edit this file https://github.com/AuthorizeNet/sdk-php/blob/master/lib/net/authorize/api/controller/CreateCustomerProfileFromTransactionController.php Change line 11 to $responseType = 'net\authorize\api\contract\v1\CreateCustomerProfileResponse'; |
The solution provided by Luke fixes this for me, but because i am using Elastic Beanstalk the fix gets overwritten every time I push a change into production which is very annoying. I am not sure why this isn't slated to be fixed in a future release. |
Fixed worked for me as well. Could you reopen this one? Thanks |
As of October 18, 2021, this is still an issue. Luke's solution fixes the issue, but of course I have to manually edit the file. Please reopen. |
As mentioned in AuthorizeNet#105
This still isnt fixed as of April 2023. If anyone needs a stop-gap solution that doesnt involve editing the original Composer installation, you can just invent the missing class in your userland code as follows: create a new file
Include the file above at the top of whatever code file needs to use the Authorize.net SDK functions
|
Yes, it's December 2023 and the issue I'm facing isn't resolved yet. Have you found any solutions to this problem? Please share if you have. |
I know it's closed but just leaving a working workaround (For Linux and Composer. For different OS you might need to replace the 'cp' command with a different one) Create a file that fixes the issue:
In the
|
Hi everyone....
Please add this file in composer.....
The text was updated successfully, but these errors were encountered: