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?
Solved! Go to Solution.
06-27-2018 10:57 PM
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...
07-25-2018 11:04 PM
Is the PHP Sample code working for you? That's always a great place to start : https://github.com/AuthorizeNet/sample-code-php
06-28-2018 08:13 AM
Thank u for ur reply..
I will check and tell u later..
06-29-2018 03:42 AM
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..
07-20-2018 10:47 PM
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...
07-25-2018 11:04 PM