cancel
Showing results for 
Search instead for 
Did you mean: 

Failing test script...

Brand newbie to anet.....

 

Input this:

<?php require_once 'http://www.riberian.com/global/payments/anet_php_sdk/AuthorizeNet.php';$url = "http://www.riberian.com/global/payments/anet_php_sdk/direct_post.php";$api_login_id = 'xxxxxx';$transaction_key = 'xxxxxxxx';$md5_setting = 'yyyyy';$amount = "5.99";AuthorizeNetDPM::directPostDemo($url, $api_login_id, $transaction_key, $amount, $md5_setting);?>

 

Got this:

 

Warning:
require(/home/content/n/e/w/newph4d/html/riberian/global/payments/anet_php_sdk/lib/shared/AuthorizeNetRequest.php)
[function.require]: failed to open stream: No such file or directory in
/home/content/n/e/w/newph4d/html/riberian/global/payments/anet_php_sdk/AuthorizeNet.php
on line 7

Fatal error: require() [function.require]: Failed opening required
'/home/content/n/e/w/newph4d/html/riberian/global/payments/anet_php_sdk/lib/shared/AuthorizeNetRequest.php'
(include_path='.:/usr/local/php5/lib/php') in
/home/content/n/e/w/newph4d/html/riberian/global/payments/anet_php_sdk/AuthorizeNet.php
on line 7

 

Code in the script is copied and pasted from "....payments in 15 minutes...." page.

 

Any help is much appreciated.

vinceg

vinceg
Member
12 REPLIES 12

None of this is my code.....

It is code generated by the Authorize.net script from the "...15 minutes..." process.

 

And how would I change the code to not use URL for referring....?

 

 

 

 

In the 15 minute

<?php
require_once 'anet_php_sdk/AuthorizeNet.php';// The SDK
$url ="http://YOUR_DOMAIN.com/direct_post.php";
$api_login_id ='YOUR_API_LOGIN_ID';
$transaction_key ='YOUR_TRANSACTION_KEY';
$md5_setting ='YOUR_API_LOGIN_ID';// Your MD5 Setting
$amount ="5.99";
AuthorizeNetDPM::directPostDemo($url, $api_login_id, $transaction_key, $amount, $md5_setting);
?>

 Also, it for test/demo only, if you read the directPostDemo spec, it said it is for demo only.

There are Certified Developer Directory if you need someone to develope for you.

 

 

That is what is in the page in question....

Just the script with my credentials filled in.

Nothing else on the page.

And I know it's for test.... it just doesn't work.

If there's another forum for people who are considering using authorize.net, let me know.

In the time it's taken to get this far, I put up a full test page on paypal....