annotations - Authorize.net Integration In Php -


i integrating authorize.net payment integration website. integrate demo site : http://developer.authorize.net/api/reference/#payment-transactions trying integrate demo authorize.net sdk. sdk downloaded : https://github.com/authorizenet/sdk-php/releases

error message

warning: include(c:\xampp\htdocs\demo\sample-code-php-master\sdk-php-1.9.3/vendor/jms/serializer/src/jms/serializer/annotation/type.php): failed open stream: no such file or directory in c:\xampp\htdocs\demo\sample-code-php-master\sdk-php-1.9.3\autoload.php on line 16

warning: include(): failed opening 'c:\xampp\htdocs\demo\sample-code-php-master\sdk-php-1.9.3/vendor/jms/serializer/src/jms/serializer/annotation/type.php' inclusion (include_path='c:\xampp\php\pear') in c:\xampp\htdocs\demo\sample-code-php-master\sdk-php-1.9.3\autoload.php on line 16

fatal error: class 'jms\serializer\annotation\type' not found in c:\xampp\htdocs\demo\sample-code-php-master\sdk-php-1.9.3\lib\net\authorize\util\sensitivedataconfigtype.php on line 6

i don't know how solve it. want integrate without composer. possible?

using composer on windows, when global install of library / package done, composer stores package in composer directory inside windows' application data folders default "c:\users{user name}\appdata\roaming".

to change folder to, example, "c:\php\composer", create composer_home environmental variable value set "c:\php\composer".

alternatively, there custom spl autoloader reference within php file:

require 'path/to/anet_php_sdk/autoload.php'; 

this autoloader still requires vendor directory , of dependencies exist. however, possible solution cases composer can't run on given system. can run composer locally or on system build directory, copy vendor directory desired system.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -