構築済みのシステムをテストクロックでテストする
テスト環境で Billing オブジェクトを時間に沿って移行させる方法をご紹介します。
概要
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.
テストクロックでは、その他に次のようなことを実行できます。
- サイクルの途中でプランをアップグレードまたは変更するなどの複雑なシミュレーションをテストする。
- 構築済みのシステムで Billing ライフサイクル Webhook が正しく処理されることを確認する。
- アプリでトライアルが正しく処理されるかどうかを検証する。
- 複数段階のサブスクリプションスケジュールを構築してテストする。