调至内容部分
创建账户
或
登录
Stripe 文档徽标
/
询问人工智能
创建账户
登录
开始
付款
销售收入
平台和交易市场
资金管理
开发人员资源
概览
Billing
概览关于 Billing API
订阅
开账单
基于用量的计费
报价
客户管理
用其他产品计费
收入恢复
自动化
测试您的集成
    概览
    测试时钟
      模拟订阅
      API 和高级用法
    测试您的开账单集成
税务
概览
使用 Stripe Tax
管理合规
报告
概览
选择报告
配置报告
Reports API
多账户报告
收入确认
数据
概览模式
自定义报告
Data Pipeline
数据管理
首页销售收入Test your integration

Test your integration with test clocks

Learn how to move Billing objects through time in a sandbox.

Overview

Test clocks help you test your Billing integration and make sure it behaves as designed. When you use test clocks you simulate the forward movement of time in sandbox, which causes Billing resources, like Subscriptions, to change state and trigger webhook events. This means that, for example, you don’t have to wait a year to see how your integration handles a payment failure for a quarterly or annual renewal.

Here are some other things you can do with test clocks:

  • Test complex simulations such as upgrading or changing plans mid-cycle.
  • Ensure your integration processes Billing lifecycle webhooks correctly.
  • Validate that your app handles trials correctly.
  • Build and test multi-phase subscription schedules.

How to use test clocks

Simulate subscriptions

Learn how to simulate subscriptions in a sandbox.

API and advanced usage

Learn advanced strategies for using test clocks in the Dashboard and API.

此页面的内容有帮助吗?
是否
  • 需要帮助?联系支持。
  • 加入我们的早期使用计划。
  • 查看我们的更改日志。
  • 有问题?联系销售。
  • LLM? Read llms.txt.
  • Powered by Markdoc