eBay SDK无法识别沙盒用户账户。

3
这是我的 ebay.yaml 文件的内容:
name: ebay_api_config


# Trading API Sandbox - https://www.x.com/developers/ebay/products/trading-api
api.sandbox.ebay.com:
    compatability: 719
    appid: XXXXXXXXXX
    certid: XXXXXXXXXX
    devid: XXXXXXXXXXX
    token: XXXXXXXXXXX

我正在使用https://github.com/timotheus/ebaysdk-python/blob/master/samples/trading.py中的确切文件尝试测试我的新沙盒账户,大部分功能都成功了,但是在尝试运行VerifyAddItem函数时出现以下错误:
Call Success: 4670 in length
Response code: 200
Response DOM1: <DOM Element: GetFeedbackResponse at 0x101281170>
Response ETREE: <Element GetFeedbackResponse at 0x10124d050>
Response dictionary: {'FeedbackScore': '0', 'Ack': 'Success', 'Timestamp': '2018-06-11T18:09:11.892Z', 'Version': '1003', 'FeedbackSummary': {'NegativeFeedbackPeriodArray'...
Response Reply: {'FeedbackScore': '0', 'Ack': 'Success', 'Timestamp': datetime.datetime(2018, 6, 11, 18, 9, 11), 'Version': '1003', 'FeedbackSummary': {'NegativeFeedb
Sell more, buy more..
u"VerifyAddItem: Class: RequestError, Severity: Error, Code: 120, You need to create a seller's account. Before you can list this item we need some additional information to create a seller's account."
{'Ack': 'Failure', 'Timestamp': '2018-06-11T18:09:13.751Z', 'Errors': [{'SeverityCode': 'Warning', 'ErrorClassification': 'RequestError', 'ErrorCode': '21920200', 'LongMessage': 'Return Policy Attribute returnDescription Not Valid On This Site', 'ErrorParameters': {'_ParamID': '0', 'Value': 'returnDescription'}, 'ShortMessage': 'Return Policy Attribute Not Valid'}, {'ErrorCode': '21919158', 'LongMessage': "The email address you entered isn't linked to a PayPal account. If you don't have a PayPal account, you'll need to set one up with this address so that buyers can pay you. (You can set up your account after your item sells).", 'ErrorClassification': 'RequestError', 'SeverityCode': 'Warning', 'ShortMessage': 'Invalid PayPal email address.'}, {'ErrorCode': '120', 'LongMessage': "Before you can list this item we need some additional information to create a seller's account.", 'ErrorClassification': 'RequestError', 'SeverityCode': 'Error', 'ShortMessage': "You need to create a seller's account."}], 'Version': '1061', 'Build': 'E1061_UNI_API5_18724070_R1'}

我已经建立了一个沙盒账户,并创建了名为testuser_XXXXX且设置了有效密码的用户。而且我成功地收到了GetTokenStatusResponse函数的响应。

Call Success: 449 in length
Response code: 200
Response DOM1: <DOM Element: GetTokenStatusResponse at 0x1012dc320>
Response ETREE: <Element GetTokenStatusResponse at 0x1012d7bd8>
Response dictionary: {'Ack': 'Success', 'Timestamp': '2018-06-11T18:09:14.347Z', 'Version': '1031', 'Build': 'E1031_CORE_APISIGNIN_18564253_R1', 'TokenStatus': {'Status': ...
Response Reply: {'Ack': 'Success', 'Timestamp': datetime.datetime(2018, 6, 11, 18, 9, 14), 'Version': '1031', 'Build': 'E1031_CORE_APISIGNIN_18564253_R1', 'TokenStatu

我不确定我需要做什么来让SDK识别我的沙盒用户账户。除了已经存在的内容,我是否需要在ebay.yaml或GitHub脚本中添加其他内容?

我尝试过使用两种类型的token……使用OAuth token完全不起作用。因此,在进行这些测试时,我一直在使用Auth'n'Auth。


希望你在api.sandbox.ebay.com之前没有缩进,因为它需要在根级别上非缩进。 - Tarun Lalwani
我已经清理了注释,但实际文件中没有空格。 - user3299633
您需要创建一个卖家账户。在您可以列出此商品之前,我们需要一些额外的信息来创建一个卖家账户。这表明沙盒账户未注册为卖家账户,因此这会防止通过此API进行进一步的操作。 - johan d
是的,我一直无法将我的沙盒账户链接到PayPal。我已经在开发者论坛上多次尝试询问,但都没有成功。我也联系了PayPal寻求帮助。这似乎是几个人都遇到的问题。 - user3299633
你看过最近的发布吗:https://developer.ebay.com/devzone/xml/docs/releasenotes.html#1061。我猜描述字段已经被弃用了,尝试将其删除。 - Michael Doubez
即使将描述注释掉,它仍然无法工作——这是将PayPal帐户绑定到沙盒帐户的问题。 - user3299633
1个回答

1

通常提供者都有自己的论坛,最好去那里看看。

请查看这里。看起来在添加项目时存在退货政策问题。最后一条评论说它很久以前就能用,但现在不行了。从[这里][2]你可以了解一些关于所需时间的信息。那是测试环境。

我曾经试图与他们集成,但决定不这样做-因为这种问题。我会尝试刷新我的测试,但我不指望从中得到太多反馈。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接