August 6, 2014, 8:17am
I want to add to project Sandbox of
authorize.net as it is written here https://developer.authorize.net/integration/fifteenminutes/
I head of my control I wrote :
require_once(Yii::app()->basePath . '/vendor/authorize_net/lib/AuthorizeNetDPM.php');
require_once(Yii::app()->basePath . '/vendor/authorize_net/lib/AuthorizeNetSIM.php');
class PaymentController extends Controller
But I get error :
include(AuthorizeNetSIM_Form.php): failed to open stream: No such file or directory
class AuthorizeNetSIM_Form is defined in protected/vendor/authorize_net/lib/AuthorizeNetSIM.php file.
Can the reason of error that file name AuthorizeNetSIM and class AuthorizeNetSIM_Fore difft
Which is the correct way to include AuthorizeNet into yii 1.1.15 project ?
August 6, 2014, 10:35am
And I get error on first file
require_once(/tybapp/vendor/authorize_net/lib/AuthorizeNetDPM.php): failed to open stream: No such file or directory
It looks like my first variant was more correct ?
You still missing the real path. just print this -
and specify the correct path.
I suggest you put your
vendor directory outside the protected directory and try the same code to specify the path -
August 7, 2014, 6:24am
will not work he is including a file not sending to the browser.
@mstdmstd I don’t see reference to AuthorizeNetSIM_Form anywhere in your code just double check if the file AuthorizeNetSIM_Form is present in your vendor/authorize_net folder if it is there then include a reference to that too
$vendor = Yii::app()->basePath . '/vendor/authorize_net/lib/';
August 7, 2014, 11:12am
Actually in class /protected/vendor/authorize_net/lib/AuthorizeNetSIM.php
there are definitions of several classes :
class AuthorizeNetSIM extends AuthorizeNetResponse
Maybe that is the point that system search file AuthorizeNetSIM_Form.php by class name AuthorizeNetSIM_Form.
I meam 1 file for 1 class definition.
could I to deal with it ?
authorize.net lib in my Symfony 1.4 project, and it was good.
That is why I decided to use in Yii 1.1.15 project…
August 7, 2014, 1:32pm
August 12, 2014, 11:24am
Thank you for links,
But I my link I used AuthorizeNetDPM, but in
http://www.yiiframework.com/extension/authorize-net-cim-yii-extension that is Customer Information Manager (CIM) API.
Is it that CIM as many functional stystem as original AuthorizeNetDPM is simplified version of AuthorizeNet API ?
I read the docd with the ext and has seveal questions :
Difference customer profile and customer payment profile ? Are these buyer and seller?
2)If I want to test it in testMode how to organize them ? I mean have I to make 2 accounts for buyer and seller?
Do I need payments cards for testMode ?
Creating new profile with authNetCreateProfile method have I save returned profileID in database for next using?
If somebody worked with this extension ? Is it good ?