Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用我的生产数据库的克隆,并能够在使用Test API Key的暂存环境中加载使用Live API Keystripe_customer_id创建的用户。有没有办法“重新创建”或生成新的暂存用户数据?stripe_customer_ids
stripe_customer_id
stripe_customer_ids
Per Stripe 的开发团队目前无法在测试环境中加载实时数据,反之亦然,尽管他们正在考虑在未来实施。
我们的订单数据存储在本地,因此我们最终运行了一个 rake 任务,在 staging 中重新创建实时用户,并为每条记录分配新的条带 ID。请注意,为每个客户保留相同的电子邮件会引发异常,因为电子邮件已经在有效的 stripe_ids 下在生产中注册,因此您可能希望在每一行中包含某种前缀。