iOS In-App purchasing and subscriptions : Testing

前端 未结 3 1470
名媛妹妹
名媛妹妹 2021-02-04 22:14

A college of mine has implemented iOS in-app purchasing on a auto-renewing monthly basis. I am taking over the code base and want to test it is working. I know the purchasing

3条回答
  •  鱼传尺愫
    2021-02-04 22:25

    No notification will be generated by apple. You have to save the recipes on server or device by using nsuserdefaults or keychain. you have to track the duration by yourself.By caluclating Compare the product identifier in question to the product identifier of each in-app purchase receipt. If there is a receipt that matches, validation succeeds. Otherwise, validation fails.

    When validation succeeds, your application enables the purchased functionality—for example, by downloading content or adding features. When validation fails, your application simply does not enable the functionality.

提交回复
热议问题