Cyber​​source Error,安全数据:UsernameToken身份验证失败

时间:2014-06-30 06:31:31

标签: django python-2.7 payment-gateway django-oscar

我使用cybersource进行信用卡付款。

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

执行时

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

获取错误

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

先谢谢

1 个答案:

答案 0 :(得分: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