This application provides examples of how to use the Authorize.Net Accept products to integrate secure payment acceptance into your applications.
- Clone or download this repo
- Host the sample app in any web server supporting PHP like IIS (with PHP) or XAMPP (Apache web server with PHP). HTTPS (SSL) must be enabled for your website.
- Set your authentication values by setting the ENVIRONMENT variables API_LOGIN_ID and TRANSACTION_KEY. For example, in httpd.conf:
SetEnv API_LOGIN_ID your_id
SetEnv TRANSACTION_KEY your_key
For IIS, you could set these in FastCGI Settings -> Environment Variables
- Browse the application (index.php) over HTTPS connection.
- To "login" use an existing customer profile ID or create a new one (http://developer.authorize.net/api/reference/index.html#customer-profiles-create-customer-profile)
- Payment forms are shown in the same page and Shipping forms are handled in a separate modal popup. Any of the types can be choosen to display the forms.
Accept Customer is the new name for Hosted CIM, part of our Customer Profiles API
The sample application shows how to:
- Incorporate the Manage Customer hosted page into your application (Profiles tab).
- Embed the hosted "Add/Edit Payment" page into your application as an iFrame (Payments tab).
- Pop up the hosted "Add/Edit Shipping" page in a light-box mode (Shipping tab).
Accept.js is a new integration option which allows you to leverage the full power of the Authorize.Net API while avoiding the PCI burden of credit card information hitting your servers. See our developer documentation for more details.
The sample application shows how to:
- Incorporate the Accept.js library into your existing payment flow (Home page, PAY button)