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
07-04-2012 04:09 AM
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
07-09-2012 09:05 AM
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];
07-10-2012 12:26 PM