\AuthorizeDotNetPayment
This class provides an e-commerce payment gateway to the Authorize.net DPM method (note that there also seems to be SIM and AIM)
- Author: nicolaas[at]sunnysideup.co.nz visit https://developer.authorize.net/ and sign up for account to start testing
Synopsis
class AuthorizeDotNetPayment
extends EcommercePayment
{
- // members
- private static Array $db = ;
- private static String $api_login_id = 'YOUR_API_LOGIN_ID';
- private static String $transaction_key = 'YOUR_TRANSACTION_KEY';
- private static String $md5_setting = '';
- private static String $show_form_type = 'PAYMENT_FORM';
- private static String $debug_url = 'https://developer.authorize.net/tools/paramdump/index.php';
- private static String $test_url = 'https://test.authorize.net/gateway/transact.dll';
- private static String $live_url = 'https://secure.authorize.net/gateway/transact.dll';
- private static String $privacy_link = '';
- private static String $logo_link = '';
- protected boolean $debug = false;
- // methods
- public static String create_fingerprint()
- public void getCMSFields()
- public FieldList getPaymentFormFields()
- public void getPaymentFormRequirements()
- public void processPayment()
- protected void executeURL()
- protected String AuthorizeDotNetForm()
- protected void isLiveMode()
Hierarchy
Extends
- EcommercePayment
Members
private
- $api_login_id
—
String
must be set - check for live vs test values - $db
—
Array
Standard SS variable - $debug_url
—
String
Test URL that form is submitted to - $live_url
—
String
Test URL that form is submitted to - $logo_link
—
String
Link to Authorize.net logo - $md5_setting
—
String
Not sure if this is needed.... - $privacy_link
—
String
Link to information about privacy - $show_form_type
—
String
we are not using any special variables here - $test_url
—
String
Test URL that form is submitted to - $transaction_key
—
String
must be set - check for live vs test values
protected
- $debug — boolean
Methods
protected
- AuthorizeDotNetForm() — turns an object into HTML.
- executeURL() — executes payment: redirects to Authorize.net
- isLiveMode()
public
- create_fingerprint()
- getCMSFields()
- getPaymentFormFields() — fields for the final step of the checkout out process...
- getPaymentFormRequirements()
- processPayment()