Hi I am doing payment transaction using AIM,using below code:
Dim post_values As New Dictionary(Of String, String)()
post_values.Add("x_login", ApiLogin)
post_values.Add("x_tran_key", TransactionKey)
post_values.Add("x_delim_data", "TRUE")
post_values.Add("x_delim_char", "|")
post_values.Add("x_relay_response", "FALSE")
post_values.Add("x_type", "AUTH_CAPTURE")
post_values.Add("x_method", "CC")
post_values.Add("x_card_num", txtCardno.Text)
post_values.Add("x_card_code", txtcvv.Text)
post_values.Add("x_exp_date", ddlMonth.SelectedValue + "" + ddlYear.SelectedValue)
post_values.Add("x_amount", "0.1")
post_values.Add("x_description", "")
post_values.Add("x_first_name", "NAMEE")
post_values.Add("x_last_name", "LNAME")
Dim post_string As [String] = ""
For Each post_value As KeyValuePair(Of String, String) In post_values
post_string += post_value.Key + "=" + HttpUtility.UrlEncode(post_value.Value) + "&"
Next
post_string = post_string.TrimEnd("&"c)
'Create an HttpWebRequest object to communicate with Authorize.net
Dim objRequest As HttpWebRequest = DirectCast(WebRequest.Create(post_url), HttpWebRequest)
objRequest.Method = "POST"
objRequest.ContentLength = post_string.Length
objRequest.ContentType = post_url
'post data is sent as a stream
Dim myWriter As StreamWriter = Nothing
myWriter = New StreamWriter(objRequest.GetRequestStream())
myWriter.Write(post_string)
myWriter.Close()
Now I am looking recuuring billing implementation on this code,Please help how I can do that? Help me asap.
โ04-21-2016 11:41 PM
โ04-22-2016 08:53 AM
To expand on @RichardH's comment:
@su_smart is using our legacy AIM API, which does not include integration with our Automated Recurring Billing (ARB) product.
When we created an API for ARB, it became the basis for the current Authorize.Net API, which supercedes the legacy AIM API.
In general we recommend using the full Authorize.Net API over legacy AIM. That would give you support for one-off transactions and ARB, among other features, with one schema and one API endpoint.
โ04-22-2016 12:29 PM
Hi Thanks for reply,I have few questions:
a> You said the code I am using for AIM is outdated? Is it no more used? Or it just doesn't have feature to integrate Recurring Billing functionality.
b>If my code is old one then please guide me new AIM inetgration code?Is it still called AIM or name has been changed.
c>Also guide me recurring billing code.
โ04-25-2016 12:34 AM
@su_smart We haven't phased out the Name-Value Pair APIs, including AIM, yet. But AIM was only designed for transaction processing, and has no support for recurring billing.
We're encouraging developers to use the Authorize.Net API, which includes transaction processing (AIM) and recurring billing (ARB) functionality. Please visit https://developer.authorize.net/api/reference/index.html for the documentation.
โ04-25-2016 10:00 AM