-2

我正在使用Authorize.net

设备注册成功但getTransactionDetailsSucceeded没有被调用?

我该如何测试它..

namespace warning : xmlns: URI AnetApi/xml/v1/schema/AnetApiSchema.xsd is not absolute ttp://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"

也关注了这个网址,但仍然没有成功......

4

3 回答 3

1

感谢您的回复..但它已经完成了......

//Call this method at once in project
-(void)registerDevice
{
    NSLog(@"registerDevice");
    MobileDeviceRegistrationRequest *registrationRequest=[MobileDeviceRegistrationRequest mobileDeviceRegistrationRequest];

    registrationRequest.anetApiRequest.merchantAuthentication.name= txtUserName.text;

    registrationRequest.anetApiRequest.merchantAuthentication.password = txtPassword.text;

    registrationRequest.mobileDevice.mobileDescription=@"iPhone";
    registrationRequest.mobileDevice.phoneNumber = @"7889999999";
    registrationRequest.mobileDevice.mobileDeviceId=[[[UIDevice currentDevice] uniqueIdentifier]
                                                     stringByReplacingOccurrencesOfString:@"-" withString:@"_"]; 
    NSLog(@"registrationRequest %@",registrationRequest);
    [AuthNet authNetWithEnvironment:ENV_TEST];

    AuthNet *an = [AuthNet getInstance];

    [an setDelegate:self];

    [an mobileDeviceRegistrationRequest:registrationRequest];

}


//And after above method call below method

- (void) loginToGateway {
      MobileDeviceLoginRequest *mobileDeviceLoginRequest =
        [MobileDeviceLoginRequest mobileDeviceLoginRequest];
      mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.name = txtUserName.text;
      mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.password = txtPassword.text;
      mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.mobileDeviceId =
        [[[UIDevice currentDevice] uniqueIdentifier]
                 stringByReplacingOccurrencesOfString:@"-" withString:@"_"];

      AuthNet *an = [AuthNet getInstance];

      [an setDelegate:self];
      [an mobileDeviceLoginRequest: mobileDeviceLoginRequest];
} 
于 2012-05-09T11:11:50.053 回答
0

当您的设备未注册时会发生此错误。因此请编写上述方法来注册您的设备并将其替换为您的凭据

于 2013-07-16T13:01:35.103 回答
0

我有同样的问题,错误 Message.code = E00059 Message.text = 此方法调用不允许身份验证类型。

解决方案是——如果您的设备已经注册,请评论以下代码

[an mobileDeviceRegistrationRequest:mobileDeviceRegistrationRequest];

这是用于注册设备

于 2013-08-30T07:51:14.397 回答