A class that demonstrates the DPM method.
package |
AuthorizeNet |
---|---|
subpackage |
AuthorizeNetDPM |
directPostDemo($url, $api_login_id, $transaction_key, $amount = "0.00", $md5_setting = "")
getRelayResponseSnippet(string $redirect_url) : string
string
Where to redirect the user.
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
string
Amount of the transaction.
string
Sequential number(ie. Invoice #)
string
The Relay Response URL
string
Your API Login ID
string
Your API Tran Key.
bool
Use the sandbox?
bool
Prefill sample values(for test purposes).
string
__construct(array $fields = false)
array
Fields to set.
getHiddenFieldString() : string
string
getFingerprint(string $api_login_id, string $transaction_key, string $amount, string $fp_sequence, string $fp_timestamp) : string
string
Login ID.
string
API key.
string
Amount of transaction.
string
An invoice number or random number.
string
Timestamp.
string
The fingerprint.
LIVE_URL
SANDBOX_URL
x_address
x_amount
x_background_url
x_card_num
x_city
x_color_background
x_color_link
x_color_text
x_company
x_country
x_cust_id
x_customer_ip
x_description
x_delim_data
x_duplicate_window
x_duty
x_email
x_email_customer
x_fax
x_first_name
x_fp_hash
x_fp_sequence
x_freight
x_header_email_receipt
x_header_html_payment_form
x_header_html_receipt
x_invoice_num
x_last_name
x_line_item
x_login
x_logo_url
x_method
x_phone
x_po_num
x_receipt_link_method
x_receipt_link_text
x_receipt_link_url
x_recurring_billing
x_relay_response
x_relay_url
x_rename
x_ship_to_address
x_ship_to_company
x_ship_to_country
x_ship_to_city
x_ship_to_first_name
x_ship_to_last_name
x_ship_to_state
x_ship_to_zip
x_show_form
x_state
x_tax
x_tax_exempt
x_test_request
x_trans_id
x_type
x_version
x_zip