在iOS中未调用自动续订订阅的订阅状态

时间:2023-01-12 21:34:29

I am facing issues with my auto-renewing subscription for an iOS app that offers auto-renewable subscription. The Subscription Status URL is at times, not being called when the subscription is renewed. This is making it difficult for us to track the user's subscription status. Funnily, this behaviour is completely arbitrary at times it is called and everything works smoothly, but at times it is not called at all.

我正面临着我的自动续订订阅问题,该应用程序提供可自动续订的iOS应用程序。订阅状态URL有时会在续订订阅时被调用。这使我们很难跟踪用户的订阅状态。有趣的是,这种行为有时是完全任意的,有时它被调用,一切顺利,但有时它根本不被调用。

Also, once the user's subscription is renewed, at times the user is not charged on his/her credit card instantly. Is this behaviour normal?

此外,一旦用户的订阅被更新,有时用户不会立即对他/她的信用卡收费。这种行为是否正常?

1 个解决方案

#1


0  

You have to follow basic rules for subscription based application.

您必须遵循基于订阅的应用程序的基本规则。

  1. Whenever you buy any auto renew subscription, in success verify your receipt and verify expiry date.
  2. 每当您购买任何自动续订订阅时,请成功验证您的收据并验证到期日期。

  3. On every application launch very receipt and verify subscription. On depending result you can notify your server.
  4. 在每个应用程序启动时都会收到并验证订阅。根据结果​​,您可以通知您的服务器。

In sandbox environment for monthly subscription it will auto renew for every 5 mins. It will auto renew for 5 times. So you can check your test cases. After that it will be expire.

在每月订阅的沙盒环境中,它将每5分钟自动续订一次。它将自动续订5次。所以你可以查看你的测试用例。之后它将过期。

In real world case subscription will auto renew before 24 hours of renew date. So if user cancels subscription before that.

在现实世界中,订阅将在续订日期24小时之前自动续订。因此,如果用户在此之前取消订阅。

If you are using SwiftyStorekit than it will be very much easy for you to handle each and every steps. Let me know you if you want more coding approach in this case.I will share example code details if you want.

如果您使用的是SwiftyStorekit,那么您可以非常轻松地处理每个步骤。如果您想在这种情况下使用更多编码方法,请告诉我。如果您愿意,我将分享示例代码详细信息。

#1


0  

You have to follow basic rules for subscription based application.

您必须遵循基于订阅的应用程序的基本规则。

  1. Whenever you buy any auto renew subscription, in success verify your receipt and verify expiry date.
  2. 每当您购买任何自动续订订阅时,请成功验证您的收据并验证到期日期。

  3. On every application launch very receipt and verify subscription. On depending result you can notify your server.
  4. 在每个应用程序启动时都会收到并验证订阅。根据结果​​,您可以通知您的服务器。

In sandbox environment for monthly subscription it will auto renew for every 5 mins. It will auto renew for 5 times. So you can check your test cases. After that it will be expire.

在每月订阅的沙盒环境中,它将每5分钟自动续订一次。它将自动续订5次。所以你可以查看你的测试用例。之后它将过期。

In real world case subscription will auto renew before 24 hours of renew date. So if user cancels subscription before that.

在现实世界中,订阅将在续订日期24小时之前自动续订。因此,如果用户在此之前取消订阅。

If you are using SwiftyStorekit than it will be very much easy for you to handle each and every steps. Let me know you if you want more coding approach in this case.I will share example code details if you want.

如果您使用的是SwiftyStorekit,那么您可以非常轻松地处理每个步骤。如果您想在这种情况下使用更多编码方法,请告诉我。如果您愿意,我将分享示例代码详细信息。