在 Authorize.Net iOS SDK 中将 API 登录 ID 和交易密钥放在哪里? [英] Where to put API Login ID and Transaction Key in Authorize.Net iOS SDK?

查看:30
本文介绍了在 Authorize.Net iOS SDK 中将 API 登录 ID 和交易密钥放在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Authorize.Net 提供支付集成.

我的问题:API 登录 ID 和交易密钥在 Authorize.Net iOS SDK 中的什么位置?

我已经包含了注册和登录请求代码.

I have already included registration and login request code.

它在带有测试用户名密码的测试帐户中工作正常.

It is working fine in test account with test username and password.

以下是设备注册代码.

MobileDeviceRegistrationRequest *mobileDeviceRegistrationRequest = [MobileDeviceRegistrationRequest mobileDeviceRegistrationRequest];
mobileDeviceRegistrationRequest.mobileDevice.mobileDeviceId = [[[[UIDevice currentDevice] identifierForVendor]UUIDString]stringByReplacingOccurrencesOfString:@"-" withString:@"_"];
mobileDeviceRegistrationRequest.anetApiRequest.merchantAuthentication.name = @"------";
mobileDeviceRegistrationRequest.anetApiRequest.merchantAuthentication.password = @"------";
mobileDeviceRegistrationRequest.anetApiRequest.merchantAuthentication.transactionKey=@"------";
        
AuthNet *anReg = [AuthNet getInstance];
[anReg setDelegate:self];
[anReg mobileDeviceRegistrationRequest:mobileDeviceRegistrationRequest];

我认为商家不会将用户名和密码提供给开发者.

I think Merchant will not give the username and password to developer.

API 登录 ID 和交易密钥应该放在哪里?

So Where to put API Login ID and Transaction Key?

谢谢

推荐答案

API 登录和交易密钥等敏感信息不应存储在移动设备上.

Sensitive information like the API Login and Transaction Key should not be stored on the mobile device.

相反,当使用移动 SDK 时,您应该使用登录 ID 和密码.这为帐户所有者提供了更多控制权,因为他们可以创建具有特定角色的用户来控制用户可以做什么或不可以做什么.帐户所有者或管理员必须批准新设备注册,并且可以从商家界面中远程禁用它们.

Instead, when using the mobile SDK, you should use the Login ID and Password. This gives the account owner more control because they can create a user with specific roles to control what the user can or cannot do. An account owner or administrator must approve new device registrations and can remotely disable them from within the merchant interface.

使用 sandbox 创建您自己的网关帐户,您可以在其中完全测试您的集成,而无需提交给卡网络的实际交易.

Use the sandbox to create your own gateway account where you can fully test your integration without the possibility of actual transactions being submitted to the card network.

这篇关于在 Authorize.Net iOS SDK 中将 API 登录 ID 和交易密钥放在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆