【问题标题】:Cybersource Error, Security Data : UsernameToken authentication failedCybersource 错误,安全数据:UsernameToken 身份验证失败
【发布时间】:2014-06-30 06:31:30
【问题描述】:
我正在使用网络资源进行信用卡支付。
使用创建的测试帐户为安全数据创建用户名令牌
执行时
self.response = self.client.service.runTransaction(**options)
得到错误
Server raised fault: '
Security Data : UsernameToken authentication failed.
'
提前致谢
【问题讨论】:
标签:
django
python-2.7
payment-gateway
django-oscar
【解决方案1】:
我明白了......
只需生成交易安全密钥并将生成的密钥作为密码。
可以连接成功。
创建密钥的步骤
Using a web browser, navigate to the CyberSource Enterprise Business Center (EBC) Test Environment login page
Log in using a username with Administrator credentials
Click Account Management from the menu bar on the left side of the screen
Click Transaction Security Keys In the expanded sub-menu,
Click the link, Security Keys for the Simple Order API on the Transaction Security Keys page
Click Generate Key
At this point you may see a pop-up dialog box asking if you want to block dynamic content on the page. Select No if this dialog box appears.
Click Generate Certificate Request when it appears (it may take a few seconds to load)
When the key generation script is done, a dialog box will appear which asks you to select a location on your computer where the new security key will be saved.
Save the key (the naming convention is <your merchant id>.p12)
Deploy the key to your system