Authorize.Net Payment

Instantiate Payment
$payment = eden('authorizenet')->payment('[API_LOGIN]', '[TRANSACTION_KEY]');
Payment Methods
Method Arguments Returns Description
$payment->getResponse(); none array Do Transactions
$payment->setAddress($address);
  1. *string
  2. - address
Eden_Authorizenet_Payment Set cardholder address
$payment->setAmount($amount);
  1. *integer|float
  2. - Transaction amount
Eden_Authorizenet_Payment Set transaction amount
$payment->setAuthentication($code);
  1. *string
  2. - Authentication code
Eden_Authorizenet_Payment Set authentication code
$payment->setCardNumber($cardNumber);
  1. *string
  2. - Card number
Eden_Authorizenet_Payment Set cardholder card number
$payment->setDescription($description);
  1. *string
  2. - item description
Eden_Authorizenet_Payment Set item Description
$payment->setEmail($email);
  1. *string
  2. - customer email address
Eden_Authorizenet_Payment Set customer email address
$payment->setExpiration($expiration);
  1. *string
  2. - Card expirartion date
Eden_Authorizenet_Payment Set cardholder card expiration date
$payment->setFirstName($firstName);
  1. *string
  2. - First name
Eden_Authorizenet_Payment Set cardholder first name
$payment->setLastName($lastName);
  1. *string
  2. - Last name
Eden_Authorizenet_Payment Set cardholder last name
$payment->setMerchantEmail($email);
  1. *string
  2. - merchant email address
Eden_Authorizenet_Payment Set merchant email address
$payment->setReceiptOff(); none Eden_Authorizenet_Payment Do not email receipt to customer
$payment->setState($state);
  1. *string
  2. - state
Eden_Authorizenet_Payment Set cardholder state
$payment->setToAuthorizeOnly(); none Eden_Authorizenet_Payment Set authorize only transaction
$payment->setToCaptureOnly(); none Eden_Authorizenet_Payment Set capture only transaction
$payment->setToCredit(); none Eden_Authorizenet_Payment Set credit transaction
$payment->setToPrior(); none Eden_Authorizenet_Payment Set prior and capture only transaction
$payment->setToVoid(); none Eden_Authorizenet_Payment Set void transaction
$payment->setTrasactionId($id);
  1. *string
  2. - Valid transaction id
Eden_Authorizenet_Payment Set transaction id
$payment->setZip($zip);
  1. *string
  2. - zip code
Eden_Authorizenet_Payment Set cardholder zip

© 2012 Openovate Labs. All rights reserved.