是否可以在测试模式下在实时模式下(具有不同的ID)以相同的对象检索对象的ID?

发布于 2025-02-06 16:14:18 字数 132 浏览 2 评论 0原文

具体来说,假设有两个共享相同属性的对象对象(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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

怪我鬧 2025-02-13 16:14:18

没有内在的方法可以实现这一目标。但是您可以使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文