Receipt validation on iOS In-App-Purchase returns multiple transaction

后端 未结 2 1834
终归单人心
终归单人心 2021-02-06 18:37

In-app purchase on sandbox mode returns multiple transactions on same product id.

Language Used: Swift 4.0

func validateAppReceipt(_ receipt: Data) {
            


        
2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-06 19:19

    You are using auto renewable subscriptions. There will be one receipt for every auto-renew or renew of the subscription.

    So generally, if subscription has renewed 5 times then there will be 5 receipts in the sandbox environment and 6 in real environment (production environment, downloaded from AppStore). Because an receipt is generated for the app downloaded or purchased from the AppStore as well.

提交回复
热议问题