I am using the "Quick Usage Example (with Charge Credit Card - Authorize and Capture)" here: https://github.com/AuthorizeNet/sdk-php
and I am running into this error where I have my code hosted on heroku:
PHP Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. in Unknown on line 0
To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead.
local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Class 'Goetas\Xsd\XsdToPhp\Jms\Handler\BaseTypesHandler' not found' in /app/vendor/authorizenet/authorizenet/lib/net/authorize/api/controller/base/ApiOperationBase.php:82
When I test transactions on my localhost (using laravel 5.1), I am able to create successful transactions and have not received this error. This only occurs on my live server.
On Postman, I only receive this error:
Class 'Goetas\Xsd\XsdToPhp\Jms\Handler\BaseTypesHandler' not found
This class and other files do exist in vendors/goetas/...., but I do not understand why this is occuring.
I have not found any instance of anyone dealing with this problem and any help would be greatly appreciated.
A hotfix for this issue has been posted in the Authorize.net php-sdk's issue queue on GitHub.
You have to update your composer.json to use a specific commit from the xsd2php library.
"require-dev": {
"goetas/xsd2php": "2.0.x-dev#fdc2ab0bb3f2b3ab796ca567cf8c0f3446a7ea3a",
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With