API > eden > authorizenet > recurring.php
View Source

class Eden_Authorizenet_Recurring

Authorize.net - Automated Recurring Billing

Constants

  • CREATE: ARBCreateSubscriptionRequest
  • UPDATE: ARBUpdateSubscriptionRequest
  • REMOVE: ARBCancelSubscriptionRequest
  • SUBSCRIPTION: subscription
  • NAME: name
  • PAYMENT_SCHEDULE: paymentSchedule
  • INTERVAL: interval
  • LENGTH: length
  • UNIT: unit
  • DATE: startDate
  • TOTAL: totalOccurrences
  • TRIAL: trialOccurrences
  • AMOUNT: amount
  • TRIAL_AMOUNT: trialAmount
  • PAYMENT: payment
  • BANK: bankAccount
  • ACCOUNT: accountType
  • ROUTING_NUMBER: routingNumber
  • ACCOUNT_NUMBER: accountNumber
  • ACCOUNT_NAME: nameOnAccount
  • BANK_NAME: bankName
  • CREDIT_CARD: creditCard
  • CARD_NUMBER: cardNumber
  • EXPIRATION: expirationDate
  • ORDER: order
  • INVOICE: invoiceNumber
  • DESCRIPTION: description
  • CUSTOMER: customer
  • ID: id
  • EMAIL: email
  • PHONE_NUMBER: phoneNumber
  • FAX_NUMBER: faxNumber
  • FIRST_NAME: firstName
  • LAST_NAME: lastName
  • COMPANY: company
  • ADDRESS: address
  • CITY: city
  • STATE: state
  • ZIP: zip
  • SHIPPING: shipTo
  • BILLING: billTo
  • SUBSCRIPTION_ID: subscriptionId
  • DAYS: days
  • MONTHS: months
  • YEARS: years

Public Methods

public function create()

Create Authomated Recurring subscription account

Returns array

public function remove()

Remove Authomated Recurring subscription account

Returns array

public function setAccountNumber($accountNumber)

Set account number

Arguments

  1. *string

Returns this

public function setAccountType($accountType)

Set account type

Arguments

  1. *string

Returns this

public function setAmount($amount)

Set amount

Returns this

public function setBank($bankName)

Set bank name

Arguments

  1. *string

Returns this

public function setBillingAddress($address)

Set Billing address

Arguments

  1. *string

Returns this

public function setBillingCity($city)

Set Billing city

Arguments

  1. *string

Returns this

public function setBillingCompany($company)

Set Billing company

Arguments

  1. *string

Returns this

public function setBillingFirstName($name)

Set Billing first name

Arguments

  1. *string

Returns this

public function seBillingtLastName($name)

Set Billing last name

Arguments

  1. *string

Returns this

public function setBillingState($state)

Set Billing city

Arguments

  1. *state

Returns this

public function setBillingZip($zip)

Set Billing city

Arguments

  1. *zip

Returns this

public function setCardNumber($cardNumber)

Set card Number

Arguments

  1. *string

Returns this

public function setCustomerEmail($email)

Set customer email

Arguments

  1. *string

Returns this

public function setCustomerFax($fax)

Set customer fax number

Arguments

  1. *string

Returns this

public function setCustomerId($id)

Set customer id

Arguments

  1. *string

Returns this

public function setCustomerPhone($phone)

Set customer phone number

Arguments

  1. *string

Returns this

public function setDate($date)

Set start date

Returns this

public function setECheck()

Set echeck

Returns this

public function setExpiration($expirationDate)

Set expiration Date

Arguments

  1. *string

Returns this

public function setIntervalLength($length)

The measurement of time, in association with the Interval Unit, that is used to define the frequency of the billing occurrences. If the Interval Unit is "months," can be any number between one (1) and 12. If the Interval Unit is "days," can be any number between seven (7) and 365.

Returns this

public function setNameOnAccount($nameOnAccount)

Set name on account

Arguments

  1. *string

Returns this

public function setOrderDescription($description)

Set order invoice number

Arguments

  1. *string

Returns this

public function setOrderInvoiceNumber($order)

Set order invoice number

Arguments

  1. *integer

Returns this

public function setRoutingNumber($routingNumber)

Set routing number

Arguments

  1. *string

Returns this

public function setShippingAddress($address)

Set shipping address

Arguments

  1. *string

Returns this

public function setShippingCity($city)

Set shipping city

Arguments

  1. *string

Returns this

public function setShippingCompany($company)

Set shipping company

Arguments

  1. *string

Returns this

public function setShippingFirstName($firstName)

Set shipping first name

Arguments

  1. *string

Returns this

public function setShippingLastName($lastName)

Set shipping last name

Arguments

  1. *string

Returns this

public function setShippingState($state)

Set shipping state

Arguments

  1. *string

Returns this

public function setShippingZip($zip)

Set shipping zip

Arguments

  1. *string

Returns this

public function setSubscriptionId($id)

Set subscription id

Arguments

  1. *string

Returns this

public function setSubscriptionName($name)

Set subscription name

Returns this

public function setToDays()

Set interval unit to days

Returns this

public function setToMonths()

Set interval unit to months

Returns this

public function setTotalOccurrences($total)

Number of billing occurrences or payments for the subscription. To submit a subscription with no end date (an ongoing subscription), this field must be submitted with a value of “9999.” If a trial period is specified, this number should include the Trial Occurrences.

Returns this

public function setToYears()

Set interval unit to years

Returns this

public function setTrialOccurrences($trial)

Number of billing occurrences or payments in the trial period. If a trial period is specified, this number must be included in the Total Occurrences.

Returns this

public function setTrialAmount($amount)

Set trial amount

Returns this

public function update()

Update Authomated Recurring subscription account

Returns array


© 2012 Openovate Labs. All rights reserved.