<< Back

AuthorizeNetRecurring.AuthorizeNetRecurring
Component AuthorizeNetRecurring (AuthorizeNetRecurring.cfc)


Provides Authorize.net recurring billing functionality


properties:
methods: init, createSubscription, updateSubscription, cancelSubscription
* - private method

init
public AuthorizeNetRecurring init ( required string loginname, required string transactionKey, string mode="test" )

Output: enabled
Parameters:
   loginname: string, required, loginname
   transactionKey: string, required, transactionKey
   mode: string, optional, mode

createSubscription (Creates a recurring subscription)
public createSubscription ( date startDate="[runtime expression]", numeric paymentIntervalLength="1", string paymentIntervalUnit="months", numeric totalOccurrences="36", required numeric amount, required string billFirstName, required string billLastName, string chargetype="cc", string refID, string subscriptionName, numeric trialOccurrences, numeric trialAmount, string cardNumber, string expirationDate, string accountType, numeric routingNumber, numeric accountNumber, string nameOnAccount, string bankName, string echeckType, string invoiceNumber, string orderDescription, string customerType, string customerId, string customerEmail, string customerPhone, string customerFax, string billCompany, string billAddress, string billCity, string billState, string billZip, string billCountry, string shipFirstName, string shipLastName, string shipCompany, string shipAddress, string shipCity, string shipState, string shipZip, string shipCountry )

Output: enabled
Parameters:
   startDate: date, optional, startDate
   paymentIntervalLength: numeric, optional, paymentIntervalLength
   paymentIntervalUnit: string, optional, paymentIntervalUnit
   totalOccurrences: numeric, optional, totalOccurrences
   amount: numeric, required, amount
   billFirstName: string, required, billFirstName
   billLastName: string, required, billLastName
   chargetype: string, optional, chargetype
   refID: string, optional, refID
   subscriptionName: string, optional, subscriptionName
   trialOccurrences: numeric, optional, trialOccurrences
   trialAmount: numeric, optional, trialAmount
   cardNumber: string, optional, cardNumber
   expirationDate: string, optional, expirationDate
   accountType: string, optional, accountType
   routingNumber: numeric, optional, routingNumber
   accountNumber: numeric, optional, accountNumber
   nameOnAccount: string, optional, nameOnAccount
   bankName: string, optional, bankName
   echeckType: string, optional, echeckType
   invoiceNumber: string, optional, invoiceNumber
   orderDescription: string, optional, orderDescription
   customerType: string, optional, customerType
   customerId: string, optional, customerId
   customerEmail: string, optional, customerEmail
   customerPhone: string, optional, customerPhone
   customerFax: string, optional, customerFax
   billCompany: string, optional, billCompany
   billAddress: string, optional, billAddress
   billCity: string, optional, billCity
   billState: string, optional, billState
   billZip: string, optional, billZip
   billCountry: string, optional, billCountry
   shipFirstName: string, optional, shipFirstName
   shipLastName: string, optional, shipLastName
   shipCompany: string, optional, shipCompany
   shipAddress: string, optional, shipAddress
   shipCity: string, optional, shipCity
   shipState: string, optional, shipState
   shipZip: string, optional, shipZip
   shipCountry: string, optional, shipCountry

updateSubscription (Updates an existing recurring subscription)
public updateSubscription ( required numeric subscriptionId, date startDate, numeric paymentIntervalLength, string paymentIntervalUnit, numeric totalOccurrences, numeric amount, string billFirstName, string billLastName, string chargetype="", string refID, string subscriptionName, numeric trialOccurrences, numeric trialAmount, string cardNumber, string expirationDate, string accountType, numeric routingNumber, numeric accountNumber, string nameOnAccount, string bankName, string echeckType, string invoiceNumber, string orderDescription, string customerType, string customerId, string customerEmail, string customerPhone, string customerFax, string billCompany, string billAddress, string billCity, string billState, string billZip, string billCountry, string shipFirstName, string shipLastName, string shipCompany, string shipAddress, string shipCity, string shipState, string shipZip, string shipCountry )

Output: enabled
Parameters:
   subscriptionId: numeric, required, subscriptionId
   startDate: date, optional, startDate
   paymentIntervalLength: numeric, optional, paymentIntervalLength
   paymentIntervalUnit: string, optional, paymentIntervalUnit
   totalOccurrences: numeric, optional, totalOccurrences
   amount: numeric, optional, amount
   billFirstName: string, optional, billFirstName
   billLastName: string, optional, billLastName
   chargetype: string, optional, chargetype
   refID: string, optional, refID
   subscriptionName: string, optional, subscriptionName
   trialOccurrences: numeric, optional, trialOccurrences
   trialAmount: numeric, optional, trialAmount
   cardNumber: string, optional, cardNumber
   expirationDate: string, optional, expirationDate
   accountType: string, optional, accountType
   routingNumber: numeric, optional, routingNumber
   accountNumber: numeric, optional, accountNumber
   nameOnAccount: string, optional, nameOnAccount
   bankName: string, optional, bankName
   echeckType: string, optional, echeckType
   invoiceNumber: string, optional, invoiceNumber
   orderDescription: string, optional, orderDescription
   customerType: string, optional, customerType
   customerId: string, optional, customerId
   customerEmail: string, optional, customerEmail
   customerPhone: string, optional, customerPhone
   customerFax: string, optional, customerFax
   billCompany: string, optional, billCompany
   billAddress: string, optional, billAddress
   billCity: string, optional, billCity
   billState: string, optional, billState
   billZip: string, optional, billZip
   billCountry: string, optional, billCountry
   shipFirstName: string, optional, shipFirstName
   shipLastName: string, optional, shipLastName
   shipCompany: string, optional, shipCompany
   shipAddress: string, optional, shipAddress
   shipCity: string, optional, shipCity
   shipState: string, optional, shipState
   shipZip: string, optional, shipZip
   shipCountry: string, optional, shipCountry

cancelSubscription (Cancels a recurring subscription)
public cancelSubscription ( required numeric subscriptionId, string refID )

Output: enabled
Parameters:
   subscriptionId: numeric, required, subscriptionId
   refID: string, optional, refID