处理自动续订订阅iOS SDK

我正在开发一个需要每月自动续订订阅的应用程序,我希望按用户进行维护,登录我的应用程序.是否有可能在应用程序购买.另外我们如何处理取消订阅?

我想在我自己的服务器上维护所有这些. 最佳答案 在
StoreKit documentation中,它在取消部分中提到:

A subscription is paid for in full when it’s purchased and can be
refunded only by contacting Apple customer service. For example, if
the user accidentally buys the wrong product, customer support can
cancel the subscription and issue a refund. It’s not possible for
customers to change their mind in the middle of a subscription period
and decide they don’t want to pay for the rest of the subscription.

To check whether a purchase has been canceled, look for the
Cancellation Date field in the receipt
. If the field has a date in it,
regardless of the subscription’s expiration date, the purchase has
been canceled—treat a canceled receipt the same as if no purchase had
ever been made.

Depending on the type of product, you may be able to check only the
currently active subscription, or you may need to check all past
subscriptions. For example, a magazine app would need to check all
past subscriptions to determine which issues the user had access to.

请记住,用户可以使用cancel the subscription anytime without opening your App.因此,每次用户登录应用程序时都必须检查订阅状态.

点赞