<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: AuthNet help in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AuthNet-help/m-p/21873#M11883</link>
    <description>&lt;P&gt;Did you follow the directions above the sample code? Also see step 4. According to that, it should fail on login until you register your device inside your account.&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://developer.authorize.net/integration/fifteenminutes/ios"&gt;https://developer.authorize.net/integration/fifteenminutes/ios&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There also seem to be a few differences between your code and what's on the code sample there. And I notice that your card expiration date has a weird character in it, and you don't have any code in the failure / success handlers, so you have no way to tell if a transaction goes through or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm only scratching the surface, of course - I'm not an iPhone programmer and I use PHP instead of C. So there's probably other things that someone with a more experienced eye would notice.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jan 2012 10:29:50 GMT</pubDate>
    <dc:creator>TJPride</dc:creator>
    <dc:date>2012-01-19T10:29:50Z</dc:date>
    <item>
      <title>AuthNet help</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AuthNet-help/m-p/21795#M11863</link>
      <description>&lt;P&gt;AuthNet dlegates not getting called ??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;have followed all steps as specified..need help..what to do exactly??&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2012 21:04:36 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AuthNet-help/m-p/21795#M11863</guid>
      <dc:creator>Manju1990</dc:creator>
      <dc:date>2012-01-18T21:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: AuthNet help</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AuthNet-help/m-p/21855#M11874</link>
      <description>&lt;P&gt;What's a dlegates?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First step is to supply us with more information. What programming language are you using? PHP? C#? What API are you using? AIM? SIM? What specific code are you using? Post it in a code box (fourth option from the left in rich text mode). What errors are you getting?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2012 00:52:06 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AuthNet-help/m-p/21855#M11874</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2012-01-19T00:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: AuthNet help</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AuthNet-help/m-p/21865#M11879</link>
      <description>&lt;P&gt;Language used : Objective C (for iphone app development)&lt;/P&gt;&lt;PRE&gt;- (void) loginToGateway {
    MobileDeviceLoginRequest *mobileDeviceLoginRequest =
    [MobileDeviceLoginRequest mobileDeviceLoginRequest];
    mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.name =@"username";
    mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.password =@"password";
    mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.mobileDeviceId =
    [[[UIDevice currentDevice] uniqueIdentifier]
     stringByReplacingOccurrencesOfString:@"-" withString:@"_"];
    
    AuthNet *an = [AuthNet getInstance];
    [an authNetWithEnvironment:ENV_TEST];
    [an setDelegate:self];
    [an mobileDeviceLoginRequest: mobileDeviceLoginRequest];
    
}

- (void) createTransaction {
    AuthNet *an = [AuthNet getInstance];
    
    [an setDelegate:self];
    
    CreditCardType *creditCardType = [CreditCardType creditCardType];
    creditCardType.cardNumber = @"4111111111111111";
    creditCardType.cardCode = @"100";
    creditCardType.expirationDate = @"1&amp;#16;212";
    
    PaymentType *paymentType = [PaymentType paymentType];
    paymentType.creditCard = creditCardType;
    
    ExtendedAmountType *extendedAmountTypeTax = [ExtendedAmountType extendedAmountType];
    extendedAmountTypeTax.amount = @"0";
    extendedAmountTypeTax.name = @"Tax";
    
    ExtendedAmountType *extendedAmountTypeShipping = [ExtendedAmountType extendedAmountType];
    extendedAmountTypeShipping.amount = @"0";
    extendedAmountTypeShipping.name = @"Shipping";
    
    LineItemType *lineItem = [LineItemType lineItem];
    lineItem.itemName = @"Soda";
    lineItem.itemDescription = @"Soda";
    lineItem.itemQuantity = @"1";
    lineItem.itemPrice = @"1.00";
    lineItem.itemID = @"1";
    
    TransactionRequestType *requestType = [TransactionRequestType transactionRequest];
    requestType.lineItems = [NSArray arrayWithObject:lineItem];
    requestType.amount = @"1.00";
    requestType.payment = paymentType;
    requestType.tax = extendedAmountTypeTax;
    requestType.shipping = extendedAmountTypeShipping;
    
    CreateTransactionRequest *request = [CreateTransactionRequest createTransactionRequest];
    request.transactionRequest = requestType;
    request.transactionType = AUTH_ONLY;
    request.anetApiRequest.merchantAuthentication.mobileDeviceId =
    [[[UIDevice currentDevice] uniqueIdentifier]
     stringByReplacingOccurrencesOfString:@"-" withString:@"_"];
    request.anetApiRequest.merchantAuthentication.sessionToken = sessionToken;
    [an purchaseWithRequest:request];
}

- (void) requestFailed:(AuthNetResponse *)response {
    // Handle a failed request
}

- (void) connectionFailed:(AuthNetResponse *)response {
    // Handle a failed connection
}

- (void) paymentSucceeded:(CreateTransactionResponse *) response {
    // Handle payment success
}

- (void) mobileDeviceLoginSucceeded:(MobileDeviceLoginResponse *)response {
    sessionToken = [response.sessionToken retain];
    [self createTransaction];
}

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    [self loginToGateway];
    self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
    // Override point for customization after application launch.
    self.window.backgroundColor = [UIColor whiteColor];
    [self.window makeKeyAndVisible];
    return YES;
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;As i am trying to implement authorize.net sdk so dont know much about AIM or how to and where to use the APIs in my code. This code i found from sample docs of authorize.net site itself. so how exactly to implement the concept ,i dont know..can u help me to solve out this thing.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2012 06:33:32 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AuthNet-help/m-p/21865#M11879</guid>
      <dc:creator>Manju1990</dc:creator>
      <dc:date>2012-01-19T06:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: AuthNet help</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AuthNet-help/m-p/21873#M11883</link>
      <description>&lt;P&gt;Did you follow the directions above the sample code? Also see step 4. According to that, it should fail on login until you register your device inside your account.&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://developer.authorize.net/integration/fifteenminutes/ios"&gt;https://developer.authorize.net/integration/fifteenminutes/ios&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There also seem to be a few differences between your code and what's on the code sample there. And I notice that your card expiration date has a weird character in it, and you don't have any code in the failure / success handlers, so you have no way to tell if a transaction goes through or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm only scratching the surface, of course - I'm not an iPhone programmer and I use PHP instead of C. So there's probably other things that someone with a more experienced eye would notice.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2012 10:29:50 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AuthNet-help/m-p/21873#M11883</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2012-01-19T10:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: AuthNet help</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AuthNet-help/m-p/22331#M12095</link>
      <description>&lt;P&gt;have followed all the steps and step 4 as well. But the thing is that delgates are not getting called .so how to make transaction and even track the transaction status?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2012 11:22:03 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AuthNet-help/m-p/22331#M12095</guid>
      <dc:creator>Manju1990</dc:creator>
      <dc:date>2012-01-30T11:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: AuthNet help</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AuthNet-help/m-p/22343#M12101</link>
      <description>&lt;P&gt;I would imagine it's something simple, but we'll have to wait for someone with iPhone experience. Can you retitle your first post to "AuthNet help with iPhone SDK?" so people are more likely to click it?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2012 16:10:17 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AuthNet-help/m-p/22343#M12101</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2012-01-30T16:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: AuthNet help</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AuthNet-help/m-p/24857#M13294</link>
      <description>&lt;P&gt;DId you do this before calling loginToGateway?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[AuthNet authNetWithEnvironment:ENV_TEST];&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2012 02:16:14 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AuthNet-help/m-p/24857#M13294</guid>
      <dc:creator>fermyon123</dc:creator>
      <dc:date>2012-03-23T02:16:14Z</dc:date>
    </item>
  </channel>
</rss>

