永远不会在Apple statusUpdateNotification上获得RENEWAL通知类型 [英] Never Get RENEWAL Notification Type on Apple statusUpdateNotification

查看:58
本文介绍了永远不会在Apple statusUpdateNotification上获得RENEWAL通知类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个由Apple webhook调用的API以与订阅一起使用.我已经将Itunes中的API网址设置为由Webhook调用.

I created an API to be called by Apple webhook to work with subscription. I've set the API url in Itunes to be called by the webhook.

根据Apple帮助网站 https://help.apple.com/关于测试自动更新订阅的app-store-connect/#/dev7e89e149d ,当在测试环境中测试自动更新订阅时,Apple Webhook将调用该API如果我选择1个月的订阅期限,则在5分钟后.

According to Apple help site https://help.apple.com/app-store-connect/#/dev7e89e149d in regards to the Testing Auto-Renewable Subscription, when testing auto renewable subscriptions in the test environment, the Apple webhook will make a call to the API after 5 minutes if I select 1 month subscription duration.

但是,事情是,在首次购买后,apple webhook没有跟进对我创建的续订订阅的API的后续调用.即使我等了5分钟以上.因此,我无法通过API进行任何处理来续订数据库中的用户订阅.

But the thing is, after making first purchase, apple webhook doesn't follow up call to the API that I created to renew the subs. Even after I waited for more than 5 minutes. So I can't do any processing from the API to renew user subs in the database.

为了测试自动续订并使Apple Webhook调用API续订子程序,是否必须进行一些配置?

Is there some configuration that I had to make in order to test the auto renew and make apple webhook call the API to renew the sub?

推荐答案

我们发现Apple的订阅更新webook调用非常不可靠.

We've found that Apple's subscription update webook calls are rather unreliable.

根据经验:

  1. 不要指望Apple通知您续订.通知可能会晚到(通常会在时间上留下空白"),也可能根本没有到达.我们已采取措施,保​​留并重试了iTunes提供的原始收据,以在订阅期结束时重新进行续订-到期日期将更改为续订费用.
  2. 也不要依靠Apple来通知您取消.与上述相同,计算订阅期限,并在一段时间结束时重试收据(如果取消订阅,则到期日期不会更新).

通常,这涉及将与重试收据一起返回的其他交易/in_apps映射到original_transaction_id,并相应地更新您的expires_at.

Generally, this involves mapping the additional transactions/in_apps that are returned with the retried receipt to the original_transaction_id --and updating the expires_at accordingly on your end.

希望这会有所帮助!

这篇关于永远不会在Apple statusUpdateNotification上获得RENEWAL通知类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆