authorizenet 1.8.5 requires jms/serializer xsd2php-dev as 0.18.0
I get this error when I try and update the SDK to the latest version (happens on 1.8.5.1)
Problem 1
- Installation request for authorizenet/authorizenet 1.8.5 -> satisfiable by authorizenet/authorizenet[1.8.5].
- authorizenet/authorizenet 1.8.5 requires jms/serializer xsd2php-dev as 0.18.0 -> no matching package found.
Merge was from here: https://github.com/AuthorizeNet/sdk-php/commit/c43a42535c27357d50092131423d4671cbb84988
I got this while trying to install as well "compose require ..."
Yep, I got this too:

I got this error when trying to add the package via the composer require cli command and when trying to add the requirements directly into my composer.json file per the hello world walkthrough:

Hey @Prefinem and @KerryJones. I don't know if you've figured this out already or not, but for you if you haven't and for anyone else who may run into the same error:
If you (like me) are following the Getting Started instructions on developer.authorize.net then the problem you're running into is that the instructions on authorize.net are out of date.
The autoloading section of the readme for the project has the up-to-date instructions for installing the package. After I updated my composer.json file it worked.
That said, it's worth reading about the Man in the composer Middle vulnerability that the contributors reference in the the readme is apparently still open (news to me). Right now I'm working through the sandbox to understand the API so I'm not concerned at the moment, but I'm definitely going to look into it and the autoloader that Authorize.net provides instead before incorporating anything into my production project.
@chris-schmitz Thanks for that info!
I do know about the MITM vulnerability and use composer locally and then push up the files after testing. Hopefully they will get if fixed soon.
@Prefinem No prob.
Yeah, I hadn't even heard of the venerability and was surprised to read about it. I don't really know anything about it outside of scanning the thread yet, but it's sounds like something that can be coped with.
Hopefully they will get if fixed soon.
Definitely.
Hopefully they will get if fixed soon.
We've been saying that for a couple years now. Their recommended solution is to set up a private, secure package repo that mirrors packagist, i.e. https://packages.your-site.com
https://getcomposer.org/doc/articles/handling-private-packages-with-satis.md
Getting Started instructions (http://developer.authorize.net/hello_world/) have been updated to reflect the SDK Readme on GitHub and the composer file from Sample Code project (https://github.com/AuthorizeNet/sample-code-php).