Class AuthorizeNetDPM

Description

A class that demonstrates the DPM method.

Located in /lib/AuthorizeNetDPM.php (line 27)

AuthorizeNetSIM_Form
   |
   --AuthorizeNetDPM
Class Constant Summary
 LIVE_URL = 'https://secure.authorize.net/gateway/transact.dll'
 SANDBOX_URL = 'https://test.authorize.net/gateway/transact.dll'
Method Summary
static void directPostDemo ( $url,  $api_login_id,  $transaction_key, [ $amount = "0.00"], [ $md5_setting = ""])
static string getCreditCardForm (string $amount, string $fp_sequence, string $relay_response_url, string $api_login_id, string $transaction_key, [bool $test_mode = true], [bool $prefill = true])
static string getRelayResponseSnippet (string $redirect_url)
Variables

Inherited Variables

Inherited from AuthorizeNetSIM_Form

AuthorizeNetSIM_Form::$x_address
AuthorizeNetSIM_Form::$x_amount
AuthorizeNetSIM_Form::$x_background_url
AuthorizeNetSIM_Form::$x_card_num
AuthorizeNetSIM_Form::$x_city
AuthorizeNetSIM_Form::$x_color_background
AuthorizeNetSIM_Form::$x_color_link
AuthorizeNetSIM_Form::$x_color_text
AuthorizeNetSIM_Form::$x_company
AuthorizeNetSIM_Form::$x_country
AuthorizeNetSIM_Form::$x_customer_ip
AuthorizeNetSIM_Form::$x_cust_id
AuthorizeNetSIM_Form::$x_delim_data
AuthorizeNetSIM_Form::$x_description
AuthorizeNetSIM_Form::$x_duplicate_window
AuthorizeNetSIM_Form::$x_duty
AuthorizeNetSIM_Form::$x_email
AuthorizeNetSIM_Form::$x_email_customer
AuthorizeNetSIM_Form::$x_fax
AuthorizeNetSIM_Form::$x_first_name
AuthorizeNetSIM_Form::$x_footer_email_receipt
AuthorizeNetSIM_Form::$x_footer_html_payment_form
AuthorizeNetSIM_Form::$x_footer_html_receipt
AuthorizeNetSIM_Form::$x_fp_hash
AuthorizeNetSIM_Form::$x_fp_sequence
AuthorizeNetSIM_Form::$x_fp_timestamp
AuthorizeNetSIM_Form::$x_freight
AuthorizeNetSIM_Form::$x_header_email_receipt
AuthorizeNetSIM_Form::$x_header_html_payment_form
AuthorizeNetSIM_Form::$x_header_html_receipt
AuthorizeNetSIM_Form::$x_invoice_num
AuthorizeNetSIM_Form::$x_last_name
AuthorizeNetSIM_Form::$x_line_item
AuthorizeNetSIM_Form::$x_login
AuthorizeNetSIM_Form::$x_logo_url
AuthorizeNetSIM_Form::$x_method
AuthorizeNetSIM_Form::$x_phone
AuthorizeNetSIM_Form::$x_po_num
AuthorizeNetSIM_Form::$x_receipt_link_method
AuthorizeNetSIM_Form::$x_receipt_link_text
AuthorizeNetSIM_Form::$x_receipt_link_url
AuthorizeNetSIM_Form::$x_recurring_billing
AuthorizeNetSIM_Form::$x_relay_response
AuthorizeNetSIM_Form::$x_relay_url
AuthorizeNetSIM_Form::$x_rename
AuthorizeNetSIM_Form::$x_ship_to_address
AuthorizeNetSIM_Form::$x_ship_to_city
AuthorizeNetSIM_Form::$x_ship_to_company
AuthorizeNetSIM_Form::$x_ship_to_country
AuthorizeNetSIM_Form::$x_ship_to_first_name
AuthorizeNetSIM_Form::$x_ship_to_last_name
AuthorizeNetSIM_Form::$x_ship_to_state
AuthorizeNetSIM_Form::$x_ship_to_zip
AuthorizeNetSIM_Form::$x_show_form
AuthorizeNetSIM_Form::$x_state
AuthorizeNetSIM_Form::$x_tax
AuthorizeNetSIM_Form::$x_tax_exempt
AuthorizeNetSIM_Form::$x_test_request
AuthorizeNetSIM_Form::$x_trans_id
AuthorizeNetSIM_Form::$x_type
AuthorizeNetSIM_Form::$x_version
AuthorizeNetSIM_Form::$x_zip
Methods
static method directPostDemo (line 37)

Implements all 3 steps of the Direct Post Method for demonstration purposes.

  • access: public
static void directPostDemo ( $url,  $api_login_id,  $transaction_key, [ $amount = "0.00"], [ $md5_setting = ""])
  • $url
  • $api_login_id
  • $transaction_key
  • $amount
  • $md5_setting
static method getCreditCardForm (line 115)

Generate a sample form for use in a demo Direct Post implementation.

  • access: public
static string getCreditCardForm (string $amount, string $fp_sequence, string $relay_response_url, string $api_login_id, string $transaction_key, [bool $test_mode = true], [bool $prefill = true])
  • string $amount: Amount of the transaction.
  • string $fp_sequence: Sequential number(ie. Invoice #)
  • string $relay_response_url: The Relay Response URL
  • string $api_login_id: Your API Login ID
  • string $transaction_key: Your API Tran Key.
  • bool $test_mode: Use the sandbox?
  • bool $prefill: Prefill sample values(for test purposes).
static method getRelayResponseSnippet (line 92)

A snippet to send to AuthorizeNet to redirect the user back to the merchant's server. Use this on your relay response page.

  • access: public
static string getRelayResponseSnippet (string $redirect_url)
  • string $redirect_url: Where to redirect the user.

Inherited Methods

Inherited From AuthorizeNetSIM_Form

AuthorizeNetSIM_Form::__construct()
AuthorizeNetSIM_Form::getFingerprint()
AuthorizeNetSIM_Form::getHiddenFieldString()
Class Constants
LIVE_URL = 'https://secure.authorize.net/gateway/transact.dll' (line 30)
SANDBOX_URL = 'https://test.authorize.net/gateway/transact.dll' (line 31)

Documentation generated on Thu, 21 Oct 2010 17:30:59 +0000 by phpDocumentor 1.4.3