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

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

问题描述

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.

以下是用于设备注册的代码.

Following is code for registration of device.

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.

使用沙盒创建自己的网关帐户,您可以在其中完全测试集成而不会实际交易正在提交到卡网络.

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.

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

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