付款失敗時讓訂閱者保留存取權
讓 Agent 為你的 App 的訂閱開啟 Apple 的帳單寬限期,選擇它持續多久、涵蓋哪些續訂,並先在沙盒中試用。
當訂閱者的續訂因付款問題而失敗時,Apple 的帳單寬限期可以在 Apple 嘗試收款期間讓他們再多使用幾天。Apple 在 Enable billing grace period for auto-renewable subscriptions ↗ 中介紹了它。Agent 可以為你的 App 開啟它、選擇它持續多久,並先在沙盒中試用。
整個 App 只有一項設定
asc 的說明稱它為「an app’s subscription grace period」(App 的訂閱寬限期):每個 App 只有一個,而不是每個方案或每個訂閱群組各一個。你的選擇會同時套用到該 App 的所有訂閱。
你可以選擇什麼
| 設定 | 選項 | 旗標 |
|---|---|---|
| 多長時間 | 3 天、16 天或 28 天(THREE_DAYS、SIXTEEN_DAYS、TWENTY_EIGHT_DAYS) |
--duration |
| 哪些續訂 | 所有續訂(ALL_RENEWALS),或僅從一個付費期間到下一個付費期間的續訂(PAID_TO_PAID_ONLY) |
--renewal-type |
| 沙盒 | 開啟或關閉 | --sandbox-opt-in |
| 你的訂閱者 | 開啟或關閉 | --opt-in |
關於每個選項涵蓋哪些續訂,例如轉為付費訂閱的免費試用,請參閱 Apple 的頁面 ↗。
先在沙盒中試用
在專案的聊天中提出要求,例如:
Turn on the billing grace period in Sandbox only: 16 days, for all renewals. Don't turn it on for real subscribers yet.- Agent 用
asc apps subscription-grace-period view讀取你的 App 的寬限期,並告訴你目前的設定。 - 它用
asc subscriptions grace-periods update更改設定,這裡使用--sandbox-opt-in true、--duration SIXTEEN_DAYS和--renewal-type ALL_RENEWALS。該指令只傳送你指定的設定,其他設定維持不變。 - 它會向你顯示 Apple 傳回的設定。
然後在你的 iPhone 上用沙盒測試人員進行測試:請參閱在發佈前測試 App 內購買項目。Agent 可以讓測試人員的訂閱更快續訂,但 asc sandbox 沒有讓付款失敗的設定。關於在沙盒中測試帳單問題,請參閱 Apple 的 Overview of testing in sandbox ↗。
檢查你的 App 的行為
寬限期是在 Apple 那邊設定的。你的 App 在寬限期內是否繼續開放付費功能,取決於你的 App 的程式碼。Apple 的頁面 ↗說明了 App 需要做什麼。詢問你的 Agent,例如:
Check that the app keeps Premium open for a subscriber in Apple's billing grace period, and fix it if it doesn't.為所有人開啟
在沙盒中運作正常後,提出要求:
The grace period works in Sandbox. Turn it on for real subscribers too, with the same settings.Agent 會使用 --opt-in true 執行 asc subscriptions grace-periods update,並向你顯示結果。
更改或關閉
說出你想要的,例如「把帳單寬限期改為 28 天。」或「關閉帳單寬限期。」Agent 只更改你指定的內容:時長、續訂,或者用 --opt-in false 和 --sandbox-opt-in false 將其關閉。關於你更改設定時已處於寬限期的訂閱者會如何,請參閱 Apple 的頁面 ↗。
要隨時查看該設定,請說「顯示 App 的帳單寬限期。」