菜鸟教程小白 发表于 2022-12-11 20:37:14

iphone - Authorize.net ios SDK错误


                                            <p><p>我在使用测试帐户进行测试时遇到问题。</p>

<p>我使用交易 key 输入了正确的用户名和密码..</p>

<p>我使用下面的代码登录..</p>

<p>;</p>

<pre><code>MobileDeviceLoginRequest *mobileDeviceLoginRequest =;
mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.name = @&#34;xxxx&#34;;
mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.transactionKey =@&#34;xxxxxxxxxxxxxx&#34;;
mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.sessionToken =sessionToken;
mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.password = @&#34;xxxxxxx&#34;;
mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.mobileDeviceId =[[ uniqueIdentifier]
stringByReplacingOccurrencesOfString:@&#34;-&#34; withString:@&#34;_&#34;];

AuthNet *an = ;
;
;
</code></pre>

<p>但在响应时返回低于 xml。</p>

<p><code>
错误<code>E00003</code>命名空间“AnetApi/xml/v1/schema/AnetApiSchema.xsd”中的元素“merchantAuthentication”在命名空间“AnetApi/xml/v1/schema/AnetApiSchema.xsd”中具有无效的子元素“password” '。预期的可能元素列表:命名空间“AnetApi/xml/v1/schema/AnetApiSchema.xsd”中的“mobileDeviceId”。</code></p><code>

</code><p><code></code></p>

<p>谁能想到解决这个错误...?</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>注册时无需传递<code>transactionkey</code>。只需传递 <code>loginid</code> 和 <code>password</code> </p></p>
                                   
                                                <p style="font-size: 20px;">关于iphone - Authorize.net ios SDK错误,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/8308377/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/8308377/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: iphone - Authorize.net ios SDK错误