API > eden > authorizenet > direct.php
View Source

class Eden_Authorizenet_Direct

Authorize.net - Direct Post Method

Constants

  • LIVE_URL: https://secure.authorize.net/gateway/transact.dll
  • TEST_URL: https://test.authorize.net/gateway/transact.dll
  • AMOUNT: x_amount
  • SEQUENCE: x_fp_sequence
  • HASH: x_fp_hash
  • TIMESTAMP: x_fp_timestamp
  • RESPONSE: x_relay_response
  • RELAY_URL: x_relay_url
  • LOGIN: x_login
  • CARD_NUMBER: Credit Card Number
  • EXPIRATION: Expiration Date
  • CVV: CVV
  • FIRST_NAME: First Name
  • LAST_NAME: Last Name
  • ADDRESS: Address
  • CITY: City
  • STATE: State
  • ZIP: Zip Code
  • COUNTRY: Country
  • SUBMIT: Submit

Public Methods

public function setAmount($amount)

Set transaction amount

Arguments

  1. *integer|float Transaction amount

Returns this

public function getResponse()

Demonstrates the Direct Post Method return this

public function setReturnUrl($url)

Set return URL

Arguments

  1. *string

Returns this

public function setAddress($address)

Set customer address

Arguments

  1. *string

Returns this

public function setAddressLabel($addressLabel)

Set address label

Arguments

  1. *string

Returns this

public function setCardNumber($cardNumber)

Set customer card number

Arguments

  1. *string

Returns this

public function setCardNumberLabel($cardNumberLabel)

Set card number label

Arguments

  1. *string

Returns this

public function setCity($city)

Set customer city

Arguments

  1. *string

Returns this

public function setCityLabel($cityLabel)

Set city label

Arguments

  1. *string

Returns this

public function setCountry($country)

Set customer country

Arguments

  1. *string

Returns this

public function setCountryLabel($countryLabel)

Set country label

Arguments

  1. *string

Returns this

public function setCvv($cvv)

Set customer cvv

Arguments

  1. *string

Returns this

public function setCvvLabel($cvvLabel)

Set cvv label

Arguments

  1. *string

Returns this

public function setExpiration($date)

Set customer exipiration date

Arguments

  1. *string

Returns this

public function setExpirationLabel($expirationLabel)

Set expiration date label

Arguments

  1. *string

Returns this

public function setFirstName($firstName)

Set customer first name

Arguments

  1. *string

Returns this

public function setFirstNameLabel($firstNameLabel)

Set first name label

Arguments

  1. *string

Returns this

public function setLastName($lastName)

Set customer last name

Arguments

  1. *string

Returns this

public function setLastNameLabel($lastNameLabel)

Set last name label

Arguments

  1. *string

Returns this

public function setState($state)

Set customer state

Arguments

  1. *string

Returns this

public function setStateLabel($stateLabel)

Set state label

Arguments

  1. *string

Returns this

public function setSubmitButton($submitButton)

Set submit button value

Arguments

  1. *string

Returns this

public function setZip($zip)

Set customer zip

Arguments

  1. *string

Returns this

public function setZipLabel($zipLabel)

Set zip label

Arguments

  1. *string

Returns this


© 2012 Openovate Labs. All rights reserved.