Could someone please help me...I have no idea how to go about integrating this into the site I am working on. I do not know php and trying to learn. Which is why I do not really want to pay someone to do it for me but a little direction would be great, any advice? I have copied the php code from the quick start and pasted it in my php file. Inserted the code into my php file to run a test in my sandbox account. I am using WAMPServer on my personal computer. I get a "Fatal Error" that reads "Fatal error: Class 'AuthorizeNetSIM_Form' not found in C:\wamp\www\Woodrow-Osceola\cart.php on line 347". Line 347 is
$fingerprint = AuthorizeNetSIM_Form::getFingerprint($api_login_id, $transaction_key,
The code
<?php $AcctName = $_POST['AcctName']; $AcctNum = $_POST['AcctNum']; $Payment = $_POST['Payment']; if($_POST['AcctType'] == "B") { $AcctType="Commercial"; } else { $AcctType="Residential"; }; $TranFee = 5; ?> <!DOCTYPE html> <!--[if IE 8]> <html lang="en" class="ie8"> <![endif]--> <!--[if IE 9]> <html lang="en" class="ie9"> <![endif]--> <!--[if !IE]><!--> <html lang="en"> <!--<![endif]--> <head> <title>Bill Cart | WOWSC</title> <!-- Meta --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content=""> <!-- Favicon --> <link rel="shortcut icon" href="favicon.ico"> <!-- CSS Global Compulsory --> <link rel="stylesheet" href="assets/plugins/bootstrap/css/bootstrap.min.css"> <link rel="stylesheet" href="assets/css/style.css"> <!-- CSS Implementing Plugins --> <link rel="stylesheet" href="assets/plugins/line-icons/line-icons.css"> <link rel="stylesheet" href="assets/plugins/font-awesome/css/font-awesome.min.css"> <!-- CSS Page Style --> <link rel="stylesheet" href="assets/plugins/sky-forms/version-2.0.1/css/sky-forms.css"> <link rel="stylesheet" href="assets/plugins/sky-forms/version-2.0.1/css/demo.css"> <!-- CSS Theme --> <link rel="stylesheet" href="assets/css/themes/default.css" id="style_color"> </head> <body class="boxed-layout container"> <div class="wrapper"> <!--=== Header ===--> <div class="header"> <!-- Topbar --> <div class="topbar"> <div class="container"> <!-- Topbar Navigation --> <ul class="loginbar pull-right"> <li><a href="tel:+12542210816">254-221-0816</a></li> <li class="topbar-devider"></li> <li><a href="tel:+18669697299">866-969-7299</a></li> </ul> <!-- End Topbar Navigation --> </div> </div> <!-- End Topbar --> <!-- Navbar --> <div class="navbar navbar-default" role="navigation"> <div class="container"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse"> <span class="sr-only">Toggle navigation</span> <span class="fa fa-bars"></span> </button> <a class="navbar-brand" href="index.html"> <img id="logo-header" src="assets/img/logo1-default.png" alt="Logo"> </a> </div> <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse navbar-responsive-collapse"> <ul class="nav navbar-nav"> <!-- Home --> <li><a href="index.html">Home</a></li> <!-- End Home --> <!-- Announcements --> <li class="dropdown"> <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown"> Announcements </a> <ul class="dropdown-menu"> <li><a href="careers.html">Employment Opportunities</a></li> <li><a href="fee_increase.html">Fee Increase</a></li> </ul> <!-- End Announcements Boxes --> <!-- Meetings --> <li class="dropdown"> <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown"> Meetings </a> <ul class="dropdown-menu"> <!-- Agenda --> <li><a href="agenda.html">Agenda</a></li> <!-- End Agenda --> <!-- 2014 Meetings --> <li class="dropdown-submenu"> <a href="javascript:void(0);">2014 Meetings</a> <ul class="dropdown-menu"> <li><a href="meetings/2014/january_2014.html">January 14, 2014</a></li> <li><a href="meetings/2014/february_2014.html">February 18, 2014</a></li> <li><a href="meetings/2014/march_2014.html">March 11, 2014</a></li> <li><a href="meetings/2014/april_2014.html">April 8, 2014</a></li> <li><a href="meetings/2014/may_2014.html">May 13, 2014</a></li> <li><a href="meetings/2014/june_2014.html">June 14, 2014</a></li> <li><a href="meetings/2014/july_2014.html">July 8, 2014</a></li> <li><a href="meetings/2014/august_2014.html">August 12, 2014</a></li> </ul> </li> <!-- End 2014 Meetings --> <!-- 2013 Meetings --> <li class="dropdown-submenu"> <a href="javascript:void(0);">2013 Meetings</a> <ul class="dropdown-menu"> <li><a href="meetings/2013/january_2013.html">January 8, 2013</a></li> <li><a href="meetings/2013/february_2013.html">February 12, 2013</a></li> <li><a href="meetings/2013/march_2013.html">March 12, 2013</a></li> <li><a href="meetings/2013/april_2013.html">April 9, 2013</a></li> <li><a href="meetings/2013/may_2013.html">May 14, 2013</a></li> <li><a href="meetings/2013/june_2013.html">June 11, 2013</a></li> <li><a href="meetings/2013/july_2013.html">July 9, 2013</a></li> <li><a href="meetings/2013/august_2013.html">August 13, 2013</a></li> <li><a href="meetings/2013/september_2013.html">September 10, 2013</a></li> <li><a href="meetings/2013/october_2013.html">October 9, 2013</a></li> <li><a href="meetings/2013/november_2013.html">November 12, 2013</a></li> </ul> </li> <!-- End 2013 Meetings --> <!-- 2012 Meetings --> <li class="dropdown-submenu"> <a href="javascript:void(0);">2012 Meetings</a> <ul class="dropdown-menu"> <li><a href="meetings/2012/january_2012.html">January 10, 2012</a></li> <li><a href="meetings/2012/february_2012.html">February 14, 2012</a></li> <li><a href="meetings/2012/march_2012.html">March 13, 2012</a></li> <li><a href="meetings/2012/annual_april_2012.html">Annual Meeting, April 7, 2012</a></li> <li><a href="meetings/2012/april_2012.html">April 10, 2012</a></li> <li><a href="meetings/2012/may_2012.html">May 8, 2012</a></li> <li><a href="meetings/2012/june_2012.html">June 12, 2012</a></li> <li><a href="meetings/2012/july_2012.html">July 10, 2012</a></li> <li><a href="meetings/2012/august_2012.html">August 14, 2012</a></li> <li><a href="meetings/2012/september_2012.html">September 11, 2012</a></li> <li><a href="meetings/2012/october_2012.html">October 9, 2012</a></li> <li><a href="meetings/2012/november_2012.html">November 13, 2012</a></li> <li><a href="meetings/2012/december_2012.html">December 11, 2012</a></li> </ul> </li> <!-- End 2012 Meetings --> <!-- 2011 Meetings --> <li class="dropdown-submenu"> <a href="javascript:void(0);">2011 Meetings</a> <ul class="dropdown-menu"> <li><a href="meetings/2011/january_2011.html">January 11, 2011</a></li> <li><a href="meetings/2011/february_2011.html">February 8, 2011</a></li> <li><a href="meetings/2011/march_2011.html">March 8, 2011</a></li> <li><a href="meetings/2011/annual_april_2011.html">Annual Meeting, April 2, 2011</a></li> <li><a href="meetings/2011/april_2011.html">April 12, 2011</a></li> <li><a href="meetings/2011/may_2011.html">May 10, 2011</a></li> <li><a href="meetings/2011/june_2011.html">June 14, 2011</a></li> <li><a href="meetings/2011/july_2011.html">July 12, 2011</a></li> <li><a href="meetings/2011/august_2011.html">August 9, 2011</a></li> <li><a href="meetings/2011/september_2011.html">September 13, 2011</a></li> <li><a href="meetings/2011/october_2011.html">October 11, 2011</a></li> <li><a href="meetings/2011/november_2011.html">November 8, 2011</a></li> <li><a href="meetings/2011/december_2011.html">December 13, 2011</a></li> </ul> </li> <!-- End 2011 Meetings --> <!-- 2010 Meetings--> <li class="dropdown-submenu"> <a href="javascript:void(0);">2010 Meetings</a> <ul class="dropdown-menu"> <li><a href="meetings/2010/january_2010.html">January 12, 2010</a></li> <li><a href="meetings/2010/february_2010.html">February 9, 2010</a></li> <li><a href="meetings/2010/march_2010.html">March 9, 2010</a></li> <li><a href="meetings/2010/annual_april_2010.html">Annual Meeting, April 3, 2010</a></li> <li><a href="meetings/2010/april_2010.html">April 13, 2010</a></li> <li><a href="meetings/2010/may_2010.html">May 11, 2010</a></li> <li><a href="meetings/2010/june_2010.html">June 8, 2010</a></li> <li><a href="meetings/2010/july_2010.html">July 13, 2010</a></li> <li><a href="meetings/2010/august_2010.html">August 10, 2010</a></li> <li><a href="meetings/2010/september_2010.html">September 14, 2010</a></li> <li><a href="meetings/2010/september21_2010.html">September 21, 2010</a></li> <li><a href="meetings/2010/october_2010.html">October 12, 2010</a></li> <li><a href="meetings/2010/november_2010.html">November 9, 2010</a></li> <li><a href="meetings/2010/december_2010.html">December 14, 2010</a></li> </ul> </li> <!-- End 2010 Meetings --> <!-- 2009 Meetings --> <li class="dropdown-submenu"> <a href="javascript:void(0);">2009 Meetings</a> <ul class="dropdown-menu"> <li><a href="meetings/2009/january_2009.html">January 13, 2009</a></li> <li><a href="meetings/2009/february_2009.html">February 10, 2009</a></li> <li><a href="meetings/2009/march_2009.html">March 10, 2009</a></li> <li><a href="meetings/2009/annual_april_2009.html">Annual Meeting, April 4, 2009</a></li> <li><a href="meetings/2009/april_2009.html">April 14, 2009</a></li> <li><a href="meetings/2009/may_2009.html">May 12, 2009</a></li> <li><a href="meetings/2009/june_2009.html">June 9, 2009</a></li> <li><a href="meetings/2009/july_2009.html">July 14, 2009</a></li> <li><a href="meetings/2009/august_2009.html">August 11, 2009</a></li> <li><a href="meetings/2009/september_2009.html">September 8, 2009</a></li> <li><a href="meetings/2009/october_2009.html">October 13, 2009</a></li> <li><a href="meetings/2009/november_2009.html">November 10, 2009</a></li> <li><a href="meetings/2009/december_2009.html">December 8, 2009</a></li> </ul> </li> <!-- End 2009 Meetings --> <!-- 2008 Meetings --> <li class="dropdown-submenu"> <a href="javascript:void(0);">2008 Meetings</a> <ul class="dropdown-menu"> <li><a href="meetings/2008/january_2008.html">January 8, 2008</a></li> <li><a href="meetings/2008/february_2008.html">February 12, 2008</a></li> <li><a href="meetings/2008/march_2008.html">March 11, 2008</a></li> <li><a href="meetings/2008/annual_april_2008.html">Annual Meeting, April 5, 2008</a></li> <li><a href="meetings/2008/april_2008.html">April 8, 2008</a></li> <li><a href="meetings/2008/may_2008.html">May 13, 2008</a></li> <li><a href="meetings/2008/june_2008.html">June 10, 2008</a></li> <li><a href="meetings/2008/july_2008.html">July 8, 2008</a></li> <li><a href="meetings/2008/special_july_2008.html">Special Board Meeting, July 15, 2008</a></li> <li><a href="meetings/2008/august_2008.html">August 12, 2008</a></li> <li><a href="meetings/2008/september_2008.html">September 12, 2008</a></li> <li><a href="meetings/2008/october_2008.html">October 14, 2008</a></li> <li><a href="meetings/2008/november_2008.html">November 11, 2008</a></li> <li><a href="meetings/2008/december_2008.html">December 9, 2008</a></li> </ul> </li> <!-- End 2008 Meetings --> <!-- 2007 Meetings --> <li class="dropdown-submenu"> <a href="javascript:void(0);">2007 Meetings</a> <ul class="dropdown-menu"> <li><a href="meetings/2007/january_2007.html">January 9, 2007</a></li> <li><a href="meetings/2007/credential_committee_january_2007.html">Credential Committee, January 9, 2007</a></li> <li><a href="meetings/2007/february_2007.html">February 13, 2007</a></li> <li><a href="meetings/2007/march_2007.html">March 13, 2007</a></li> <li><a href="meetings/2007/annual_april_2007.html">Annual Meeting, April 7, 2007</a></li> <li><a href="meetings/2007/april_2007.html">April 10, 2007</a></li> <li><a href="meetings/2007/may_2007.html">May 8, 2007</a></li> <li><a href="meetings/2007/june_2007.html">June 12, 2007</a></li> <li><a href="meetings/2007/july_2007.html">July 10, 2007</a></li> <li><a href="meetings/2007/august_2007.html">August 14, 2007</a></li> <li><a href="meetings/2007/september_2007.html">September 11, 2007</a></li> <li><a href="meetings/2007/october_2007.html">October 9, 2007</a></li> <li><a href="meetings/2007/november_2007.html">November 13, 2007</a></li> <li><a href="meetings/2007/december_2007.html">December 11, 2007</a></li> </ul> </li> <!-- End 2007 Meetings --> <!-- 2006 Meetings --> <li class="dropdown-submenu"> <a href="javascript:void(0);">2006 Meetings</a> <ul class="dropdown-menu"> <li><a href="meetings/2006/january_2006.html">January 10, 2006</a></li> <li><a href="meetings/2006/february_2006.html">February 10, 2006</a></li> <li><a href="meetings/2006/march_2006.html">March 14, 2006</a></li> <li><a href="meetings/2006/april_2006.html">April 18, 2006</a></li> <li><a href="meetings/2006/may_2006.html">May 9, 2006</a></li> <li><a href="meetings/2006/june_2006.html">June 13, 2006</a></li> <li><a href="meetings/2006/july_2006.html">July 18, 2006</a></li> <li><a href="meetings/2006/public_hearing_july_2006.html">Public Hearing, July 18, 2006</a></li> <li><a href="meetings/2006/august_2006.html">August 8,2006</a></li> <li><a href="meetings/2006/september_2006.html">September 12,2006</a></li> <li><a href="meetings/2006/special_september_2006.html">Special Board Meeting, September 25, 2006</a></li> <li><a href="meetings/2006/october_2006.html">October 10, 2006</a></li> <li><a href="meetings/2006/november_2006.html">November 6, 2006</a></li> <li><a href="meetings/2006/december_2006.html">December 12, 2006</a></li> </ul> </li> <!-- End 2006 Meetings --> </ul> </li> <!-- End Meetings --> <!-- Members --> <li class="dropdown"> <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown"> Member </a> <ul class="dropdown-menu"> <li><a href="service_fees.html">Service Fees</a></li> <li><a href="tceq.html">TCEQ Rules</a></li> <li><a href="water_conservation.html">Water Conservation</a></li> <li><a href="boardapp.html">Board of Directors Applications</a></li> <li class="dropdown-submenu"> <a href="javascript:void(0);">Archived Documents</a> <ul class="dropdown-menu"> <li><a href="pgma.html">PGMA Closing Arguments Submitted</a></li> <li><a href="well_6_fee_increase.html">WOWSC Increase Fees to Fund Well #6</a></li> <li><a href="2008_membership_letter.html">2008 Annual Membership Letter</a></li> </ul> </li> </ul> <!-- End Members Boxes --> <!-- Well Info --> <li class="dropdown"> <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown"> Well Info. </a> <ul class="dropdown-menu"> <li><a href="tariff.html">Current Tariff</a></li> <li><a href="water_quality.html">Water Quality Reports</a></li> <li><a href="charter.html">Our Charter</a></li> </ul> <!-- End Well Info --> <!--Bill Pay--> <li><a href="pay.html">Pay Online</a></li> <!--End Bill Pay--> <!-- Contact --> <li class="dropdown"> <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown"> Contact Us </a> <ul class="dropdown-menu"> <li><a href="contact.html">Contact Us</a></li> <li><a href="staff.html">Our Staff</a></li> </ul> <!-- End Contact --> </ul> </div> <!--/navbar-collapse--> </div> </div> <!-- End Navbar --> </div> <!--=== End Header ===--> <!--=== Breadcrumbs ===--> <div class="breadcrumbs"> <div class="container"> <h1 class="pull-left">Cart</h1> <ul class="pull-right breadcrumb"> <li><a href="index.html">Home</a></li> <li><a href="pay.html">Bill Pay</a></li> <li class="active">Cart</li> </ul> </div> <!--/container--> </div> <!--/breadcrumbs--> <!--=== End Breadcrumbs ===--> <!--=== Content Part ===--> <div class="container content"> <div class="body body-s"> <form action="https://test.authorize.net/gateway/transact.dll" method="post" id="form1" class="sky-form"> <?php $api_login_id = '4Bd8nWc8XysQ'; $transaction_key = '3T23a9axMa44XJ67'; $amount = "5.99"; $fp_timestamp = time(); $fp_sequence = "123" . time(); // Can be changed to an invoice or other unique number. $fingerprint = AuthorizeNetSIM_Form::getFingerprint($api_login_id, $transaction_key, $amount, $fp_sequence, $fp_timestamp); ?> <form method='post' action="https://test.authorize.net/gateway/transact.dll"> <input type='hidden' name="x_login" value="<?php echo $api_login_id?>" /> <input type='hidden' name="x_fp_hash" value="<?php echo $fingerprint?>" /> <input type='hidden' name="x_amount" value="<?php echo $amount?>" /> <input type='hidden' name="x_fp_timestamp" value="<?php echo $fp_timestamp?>" /> <input type='hidden' name="x_fp_sequence" value="<?php echo $fp_sequence?>" /> <input type='hidden' name="x_version" value="3.1" /> <input type='hidden' name="x_show_form" value="payment_form" /> <input type='hidden' name="x_test_request" value="true" /> <input type='hidden' name="x_method" value="cc" /> <input type='submit' value="Click here for the secure payment form" /> </form> <header>Cart</br> <p>Click Pay to go to the payment area; click Go Back to re-enter your information.</p> </header> <fieldset> <section> <div class="row"> <label class="label col col-4">Member Name</label> <div class="col col-8"> <label class="input"> <i class="icon-append fa fa-user"></i> <input type="text" value="<?php echo $AcctName;?>" readonly> </label> </div> </div> </section> <section> <div class="row"> <label class="label col col-4">Account</label> <div class="col col-8"> <label class="input"> <i class="icon-append fa fa-lock"></i> <input type="text" value="<?php echo $AcctNum;?>" readonly> </label> </div> </div> </section> <section> <div class="row"> <label class="label col col-4">Account Type</label> <div class="col col-8"> <label class="input"> <i class="icon-append fa fa-cogs"></i> <input type="text" value="<?php echo $AcctType;?>" readonly> </label> </div> </div> </section> <section> <div class="row"> <label class="label col col-4">Payment Amount</label> <div class="col col-8"> <label class="input"> <i class="icon-append fa fa-money"></i> <input type="text" value="<?php echo $Payment;?>" readonly> </label> </div> </div> </section> <section> <div class="row"> <label class="label col col-4">Transaction Fee</label> <div class="col col-8"> <label class="input"> <i class="icon-append fa fa-money"></i> <input type="text" value="<?php echo number_format($TranFee,2,'.',''); ?>" readonly> </label> </div> </div> </section> <section> <div class="row"> <label class="label col col-4">Total</label> <div class="col col-8"> <label class="input"> <i class="icon-append fa fa-money"></i> <input type="text" value="<?php echo($Payment + $TranFee); ?>" readonly> </label> </div> </div> </section> <section> <button name="submit" type="submit" class="button" onClick="MM_validateForm('AcctName','','R','AcctNum','','RisNum','Payment','','RinRange1:2000');return document.MM_returnValue" value="Submit">Login</button> </section> </fieldset> <footer> <h3>WOWSC will not refund payments made by credit card. We no longer accept American Express payments.</h3> </footer> </form> </div> </div> <!-- /Container --> <!-- End Content Part --> <!--=== Copyright ===--> <div class="copyright"> <div class="container"> <div class="row"> <div class="col-md-6"> <p> 2014 © AIDesigns | Content © Woodrow-Osceola Water Supply Corp. 2014 </p> </div> <div class="col-md-6"> <a href="index.html"> <img class="pull-right" id="logo-footer" src="assets/img/logo1-default.png" alt=""> </a> </div> </div> </div> </div> <!--/copyright--> <!--=== End Copyright ===--> </div> <!--/wrapper--> <!-- JS Global Compulsory --> <script type="text/javascript" src="assets/plugins/jquery-1.10.2.min.js"></script> <script type="text/javascript" src="assets/plugins/jquery-migrate-1.2.1.min.js"></script> <script type="text/javascript" src="assets/plugins/bootstrap/js/bootstrap.min.js"></script> <!-- JS Implementing Plugins --> <script type="text/javascript" src="assets/plugins/back-to-top.js"></script> <!-- JS Page Level --> <script type="text/javascript" src="assets/js/app.js"></script> <script type="text/javascript"> jQuery(document).ready(function() { App.init(); }); </script> <!--[if lt IE 9]> <script src="assets/plugins/respond.js"></script> <script src="assets/plugins/html5shiv.js"></script> <![endif]--> </body> </html>
12-10-2014 06:41 PM
They might have change since they moved the SDKs to
https://github.com/AuthorizeNet/sdk-php
follow the instruction there.
or there is Sample code for PHP SIM
12-11-2014 04:15 AM