当前位置: 动力学知识库 > 问答 > 编程问答 >

ios - In-app pruchase not working but getting product response

问题描述:

I know there are LOTS of these questions but I can't find one that helps.

I've implemented IAP many times but not in the last year. Things seem to have changed. I created my IAP items in iTunes Connect and their status is now 'Waiting for review'. I'm using a library called RMStore to make IAP easier.

When I make a call to purchase with the product ID I get an 'invalid product ID error'. Do my IAP items have to pass review BEFORE I can test them?

Edit:

I did some more testing. Even though I get invalid product ID when I try to make a purchase I am able to get the details of the products fine with the same product ID's.

This is the code I call when I get the error.

[[RMStore defaultStore] addPayment:productID success:^(SKPaymentTransaction *transaction) {

} failure:^(SKPaymentTransaction *transaction, NSError *error) {

}

网友答案:

RMStore author here.

When I make a call to purchase with the product ID I get an 'invalid product ID error'. Do my IAP items have to pass review BEFORE I can test them?

No.

I did some more testing. Even though I get invalid product ID when I try to make a purchase I am able to get the details of the products fine with the same product ID's.

Before purchasing products you need to request their details. If you fail to do so, RMStore will log "unknown product id" in DEBUG.

It might help to post the exact error message.

分享给朋友:
您可能感兴趣的文章:
随机阅读: