2

我正在使用网络资源进行信用卡支付。

使用创建的测试帐户为安全数据创建用户名令牌

执行时

    self.response = self.client.service.runTransaction(**options)

得到错误

    Server raised fault: '
    Security Data : UsernameToken authentication failed.
    '

提前致谢

4

1 回答 1

4

我知道了.......

只需生成交易安全密钥并将生成的密钥作为密码。能够连接成功。

创建密钥的步骤

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
于 2014-07-01T04:23:28.213 回答