cancel
Showing results for 
Search instead for 
Did you mean: 

Page not loaded.

 CODE:

        require 'vendor/autoload.php';

 

        use net\authorize\api\contract\v1 as AnetAPI;

        use net\authorize\api\controller as AnetController;

 

        $merchantAuthentication = new AnetAPI\MerchantAuthenticationType();

        print_r($merchantAuthentication);

        die;

 

Results, 

               This page isn't working.

               HTTP ERROR 500


I think the problem is use of,
                          

        use net\authorize\api\contract\v1 as AnetAPI;

        use net\authorize\api\controller as AnetController;

PHP Version:7

TLS 1.2 installed

Any solution?

jenya1991
Member
1 ACCEPTED SOLUTION

Accepted Solutions

Hi,

 

Please bear in mind that the use statements should appear at the top of a PHP file, not half-way through it...

 

ISSUE SOLVED...

View solution in original post

4 REPLIES 4

Is the PHP Sample code working for you?  That's always a great place to start : https://github.com/AuthorizeNet/sample-code-php 

 

brianmc
Administrator Administrator
Administrator

Thank u for ur reply..
I will check and tell u later..

Still "This page isn’t working"

code: 

 

require 'vendor/autoload.php';
use net\authorize\api\contract\v1 as AnetAPI;
use net\authorize\api\controller as AnetController;

 

I think the error is in above lines..
pls help me..

Hi,

 

Please bear in mind that the use statements should appear at the top of a PHP file, not half-way through it...

 

ISSUE SOLVED...