Link to home
Start Free TrialLog in
Avatar of Richard Korts
Richard KortsFlag for United States of America

asked on

Find Authorize.net required includes

I want to add the ability to a customer web site to accept direct bank account payments; currently, we accept credit cards.

We use Authorize.net. All server side programming in php.

I found the attached code from Authorize.net, I think I see how it functions, but it's terribly over simplistic & obviously depends upon being encased in some
environment, for example, these lines at the top:

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

Does someone have Authorize.net experience & can help me link to the necessary includes, etc?

Thank you.
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

they have a lot of examples on github and in their developer resources. https://github.com/AuthorizeNet/sample-code-php/blob/master/PaymentTransactions/charge-credit-card.php
Avatar of Richard Korts

ASKER

Sorry to be so stupid, the exact same sample I attached to my post is there, where do I get these?

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

I have no clue where the web address is for that stuff.

Thank you
ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That looks good.

I'll see where that leads.

Thank you.