php - Authorize.net API error: Class 'Goetas\Xsd\XsdToPhp\Jms\Handler\BaseTypesHandler' not found -
i using "quick usage example (with charge credit card - authorize , capture)" here: https://github.com/authorizenet/sdk-php
and running error have code hosted on heroku:
php deprecated: automatically populating $http_raw_post_data deprecated , removed in future version. in unknown on line 0
to avoid warning set 'always_populate_raw_post_data' '-1' in php.ini , use php://input stream instead.
local.error: exception 'symfony\component\debug\exception\fatalerrorexception' 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 test transactions on localhost (using laravel 5.1), able create successful transactions , have not received error. occurs on live server.
on postman, receive error:
class 'goetas\xsd\xsdtophp\jms\handler\basetypeshandler' not found
this class , other files exist in vendors/goetas/...., not understand why occuring.
i have not found instance of dealing problem , appreciated.
a hotfix issue has been posted in authorize.net php-sdk's issue queue on github.
you have update composer.json use specific commit xsd2php library.
"require-dev": { "goetas/xsd2php": "2.0.x-dev#fdc2ab0bb3f2b3ab796ca567cf8c0f3446a7ea3a", }
Comments
Post a Comment