cancel
Showing results for 
Search instead for 
Did you mean: 

autherize.net integration with ios

hello everybody,

 

Iam integrating autherize.net in ios.

i fallowed the link https://developer.authorize.net/integration/fifteenminutes/ios

dont know where iam doing wrong

i hav egive my name i.e my login id and password.but iam not callback methods  are not called.

 

- (void) requestFailed:(AuthNetResponse *)response {

  // Handle a failed request

NSLog(@"%@",response.responseReasonText);

}

 

- (void) connectionFailed:(AuthNetResponse *)response {

  // Handle a failed connection

}

 

- (void) paymentSucceeded:(CreateTransactionResponse *) response {

  // Handle payment success

NSLog(@"%@",response.transactionResponse);

 

}

 

- (void) mobileDeviceLoginSucceeded:(MobileDeviceLoginResponse *)response {

NSLog(@"%@",response.sessionToken);

    sessionToken = [response.sessionTokenretain];

NSLog(@"%@",sessionToken);

    [selfcreateTransaction];

}

 

 

please cana nybody help me

  regards,

 sandeep

appshark_123
Member
2 REPLIES 2

Hi sandeep,

 

I'm not quite sure what the problem is here. Can you be a little more specific? Or if you need to, you may want to email developer@authorize.net for more help.

 

Thanks,

 

Michelle

Developer Community Manager

Michelle
All Star

The sample code is oncorrect, as it's missing some crucial pieces. getInstance doesn't return any object unless you created it previously. You can try something like this:

 

AuthNet *an = [AuthNet getInstance];
    if (an == nil)
        an = [AuthNet authNetWithEnvironment:ENV_TEST];

Vuretsky3
Member