是否可以在测试模式下在实时模式下(具有不同的ID)以相同的对象检索对象的ID?
具体来说,假设有两个共享相同属性的对象对象(id
),一个在测试中,另一个在实时模式下。一旦我在实时模式中,我是否可以在测试模式下以测试模式检索对象的id
?
任何帮助都非常感谢。
Specifically, assume there are two Price
objects that share the same attributes (except for the id
), one in the TEST and the other in the LIVE mode. Is there a way to retrieve the object's id
in TEST mode once I have the object in LIVE mode?
Any help is really appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有内在的方法可以实现这一目标。但是您可以使用
metadata
实时模式价格对象存储测试模式价格对象的ID。
请注意,您将需要LiveMode API键检索LiveMode Price对象和TestMode API键来检索TestMode Price对象。
There's no built-in way to achieve this. But you could use the
metadata
property of the live mode Price object to store the ID of the test mode Price object.Note that you will need the livemode API keys to retrieve the livemode Price object and the testmode API keys to retrieve the testmode Price object.