开发者

Transactions don't get restored when buying In-App Purchase again (Using MKStoreKit)

开发者 https://www.devze.com 2023-04-02 10:48 出处:网络
I amusing MKStoreKit to handle all of my In-App Purchases in my app. When I buy my In-App Purchase the first time it works, but when I buy it again I get \"You have already purchased this but it hasn

I am using MKStoreKit to handle all of my In-App Purchases in my app. When I buy my In-App Purchase the first time it works, but when I buy it again I get "You have already purchased this but it hasn't been downloaded. Tap OK to download it now." message. If I click ok I get "Failed Transaction" for some reason. It doesn't even call开发者_如何学Python Restore Transactions, it calls "Transaction Failed" for some reason, even if I receive "You have already purchased" message. Why is this happening (I am using MKStoreKit 4)? Thanks!


Here's what did the trick for me:

In MKStoreKitConfigs.h:

#define SERVER_PRODUCT_MODEL 0

The problem was I had this set to 1 when I was experimenting.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号