AuthorizeNetDPM

Extends \AuthorizeNetSIM_Form

A class that demonstrates the DPM method.

package

AuthorizeNet

subpackage

AuthorizeNetDPM

Methods

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

directPostDemo($url, $api_login_id, $transaction_key, $amount = "0.00", $md5_setting = "") 
static

Arguments

$url

$api_login_id

$transaction_key

$amount

$md5_setting

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

getRelayResponseSnippet(string $redirect_url) : string
static

Arguments

$redirect_url

string

Where to redirect the user.

Response

string

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

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
static

Arguments

$amount

string

Amount of the transaction.

$fp_sequence

string

Sequential number(ie. Invoice #)

$relay_response_url

string

The Relay Response URL

$api_login_id

string

Your API Login ID

$transaction_key

string

Your API Tran Key.

$test_mode

bool

Use the sandbox?

$prefill

bool

Prefill sample values(for test purposes).

Response

string

Constructor

__construct(array $fields = false) 
inherited

Arguments

$fields

array

Fields to set.

Get a string of HTML hidden fields for use in a form.

getHiddenFieldString() : string
inherited

Response

string

Generates a fingerprint needed for a hosted order form or DPM.

getFingerprint(string $api_login_id, string $transaction_key, string $amount, string $fp_sequence, string $fp_timestamp) : string
inherited static

Arguments

$api_login_id

string

Login ID.

$transaction_key

string

API key.

$amount

string

Amount of transaction.

$fp_sequence

string

An invoice number or random number.

$fp_timestamp

string

Timestamp.

Response

string

The fingerprint.

Constants

LIVE_URL

LIVE_URL

SANDBOX_URL

SANDBOX_URL

Properties

x_address

x_address
inherited

x_amount

x_amount
inherited

x_background_url

x_background_url
inherited

x_card_num

x_card_num
inherited

x_city

x_city
inherited

x_color_background

x_color_background
inherited

x_color_text

x_color_text
inherited

x_company

x_company
inherited

x_country

x_country
inherited

x_cust_id

x_cust_id
inherited

x_customer_ip

x_customer_ip
inherited

x_description

x_description
inherited

x_delim_data

x_delim_data
inherited

x_duplicate_window

x_duplicate_window
inherited

x_duty

x_duty
inherited

x_email

x_email
inherited

x_email_customer

x_email_customer
inherited

x_fax

x_fax
inherited

x_first_name

x_first_name
inherited

x_fp_hash

x_fp_hash
inherited

x_fp_sequence

x_fp_sequence
inherited

x_fp_timestamp

x_fp_timestamp
inherited

x_freight

x_freight
inherited

x_header_email_receipt

x_header_email_receipt
inherited

x_header_html_payment_form

x_header_html_payment_form
inherited

x_header_html_receipt

x_header_html_receipt
inherited

x_invoice_num

x_invoice_num
inherited

x_last_name

x_last_name
inherited

x_line_item

x_line_item
inherited

x_logo_url

x_logo_url
inherited

x_method

x_method
inherited

x_phone

x_phone
inherited

x_po_num

x_po_num
inherited

x_recurring_billing

x_recurring_billing
inherited

x_relay_response

x_relay_response
inherited

x_relay_url

x_relay_url
inherited

x_rename

x_rename
inherited

x_ship_to_address

x_ship_to_address
inherited

x_ship_to_company

x_ship_to_company
inherited

x_ship_to_country

x_ship_to_country
inherited

x_ship_to_city

x_ship_to_city
inherited

x_ship_to_first_name

x_ship_to_first_name
inherited

x_ship_to_last_name

x_ship_to_last_name
inherited

x_ship_to_state

x_ship_to_state
inherited

x_ship_to_zip

x_ship_to_zip
inherited

x_show_form

x_show_form
inherited

x_state

x_state
inherited

x_tax

x_tax
inherited

x_tax_exempt

x_tax_exempt
inherited

x_test_request

x_test_request
inherited

x_trans_id

x_trans_id
inherited

x_type

x_type
inherited

x_version

x_version
inherited

x_zip

x_zip
inherited