2012-05-02 2 views
-2

Я использую Authorize.netКак проверить Authorize.net в iPhone SDK

и устройство успешно зарегистрирован, но 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"

Также следовали этой url, но до сих пор не увенчались успехом ...

+0

Где находятся ссылки ??? – DivineDesert

ответ

0

Спасибо за ваш ответ .. Но его уже сделали ...

//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; 

    [email protected]"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]; 
} 
+0

Его работая отлично но значение [AuthNet getInstance] получая в xcode 3.2.5 и бежит с приспособлением. !! – Wish

+0

Что такое использование ключа транзакции, если нам нужен только пароль, который небезопасен? –

0

Эта ошибка возникает, когда устройство ur не зарегистрировано. Так напишите выше, чтобы зарегистрировать свое устройство и заменить его на ur учетные данные

0

У меня такая же проблема, ошибка Message.code = E00059 Message.text = Тип аутентификации не разрешен для этого вызова метода.

решение - Если устройство уже зарегистрировано затем комментарий ниже код

[an mobileDeviceRegistrationRequest:mobileDeviceRegistrationRequest]; 

Это для регистрации устройства