Integrate Automated Recurring Billing(ARB) API with AIM – Authorize.Net

Authorized.Net is AIM means Advance Integration Method. AIM is used for online transaction but with authorized way. It means Admin need to authorized the amount or order submitted by end-user.

After authorization it will go for Capture. Once amount will be captured by Admin that means it is queued for Unsettled Transaction. After some hour it will process automatically for settled Transaction.

  • Authorized: it means amount is Approved by Admin.
  • Capture : it means amount is deducted from buyer account.
  • Unsettled : it means amount is not yet deposited to Merchant account.
  • Settled : it means account is deposited to Merchant account. This is the final process for Transaction.

What is ARB?

ARB means Automatic Recurring Billing. ARB is used for subscription. ARB can be created eg. monthly ,yearly ,half yearly etc. Once ARB is created amount will be deducted from buyer account as according to set ARB details . It will continue until it is canceled by Merchant.

How to work with AIM ARB C# ?

1) First of all you need to Add reference of “Authorize.Net”.
2) Add reference of AIM DLL.

(Download AIM.DLL file)

Note: Now access all Classes of AIM ARB according to your needs.

1) To create Order by customer

  1. Create Object of “AIMTransaction” class.
  2. Invoke “CreateOrder” method.
  3. Pass Following Parameters.
Data TypeParameter
stringLoginAPI (get it from your Authorized.net account panel)
stringTransactionKey (get it from your Authorized.net account panel)
stringcardNumber (credit card number)
stringexpirationMonthAndYear
decimalamount
stringdescription
stringFirstName
stringLastName
stringAddress
stringCountry

4. It will return a message suucess/error.

2) To get list of Unsetteled Transaction

  • Invoke Unsettled Transaction.
  • Pass following parameters
Data TypeParameter
stringLoginAPI (get it from your Authorized.net account panel)
stringTransactionKey (get it from your Authorized.net account panel)
  • It will return you Unsetteled Transaction list

3) To get list of Setteled Transaction

  • Invoke “SetteledTransaction”.
  • Pass following parameters.
Data TypeParameter
stringLoginAPI (get it from your Authorized.net account panel)
stringTransactionKey (get it from your Authorized.net account panel)
  • It will return you “SetteledTransaction” list.

4) Create Subscription or ARB

  • Create object of ARB class.
  • Invoke createSubscription method.
  • Pass following parameters.
Data TypeParameter
stringLoginAPI (get it from your Authorized.net account panel)
stringTransactionKey (get it from your Authorized.net account panel)
stringtransaction_id
stringBuyerEmailId
stringCardNumber
shortBillingInterval
intCardExpirationMonth
intCardExpirationYear
stringInvoiceNumber
DateTimeStartsOn (start date)
stringStreetAddress
decimalamount
shortnumberOfBillings
  • It will return you Subscription ID ,save it in DB because require while cancel subscription

5) Cancel Subscription or ARB

  • Create object of “AIMTransaction” class.
  • Invoke “CancelSubscription” method.
  • Pass following parameters.
Data TypeParameter
stringLoginAPI (get it from your Authorized.net account panel)
stringTransactionKey (get it from your Authorized.net account panel)
stringsub_id
  • It will return you message success/error.

6) Refund Amount to User

  • Create object of “AIMTransaction” class
  • Invoke “Refund” method
  • Pass following parameters
  • It will return you message success/error.

7) Capture Amount by Admin

  • Create object of “AIMTransaction” class
  • Invoke “capture” method
  • Pass following parameters.
  • It will return you message success/error.

8) Void Amount by Admin

  • Create object of “AIMTransaction” class
  • Invoke “VoidAMI” method
  • Pass following parameters
  • It will return you message success/error

 

Data TypeParameter
stringLoginAPI (get it from your Authorized.net account panel)
stringTransactionKey (get it from your Authorized.net account panel)
stringid (id here is transaction Id)
decimalamount
stringcreditcardNuber
Data TypeParameter
stringLoginAPI (get it from your Authorized.net account panel)
stringTransactionKey (get it from your Authorized.net account panel)
stringtransaction_id
decimalamount
Data TypeParameter
stringLoginAPI (get it from your Authorized.net account panel)
stringTransactionKey (get it from your Authorized.net account panel)
stringid (id here as Transaction Id)
decimalcreditcardNuber