I know this question is asked few times. I have tried all solution but still not succeed. Here is my issue:
In below lines of code I am getting response.products.count = 0
and getting product ids that I have entered as response.invalidProductIdentifiers
.
func productsRequest(request: SKProductsRequest, didReceiveResponse response: SKProductsResponse) {
if response.products.count != 0 {
for product in response.products {
productsArray.append(product )
}
}
else {
print("There are no products.")
}
if response.invalidProductIdentifiers.count != 0 {
print(response.invalidProductIdentifiers.description)
}
}
Set up that I have done for IAP :
Xcode > Target > In-App Purchases
is enabled.Is there need to upload binary at iTunes Connect?
Is there anything I am missing?
The product identifier is a string previously agreed on between your app and the Apple App Store.
Also, Apple Pay can be used for purchasing services such as club memberships, hotel reservations, and tickets for events. You are required to use Apple's In-App Purchase to sell virtual goods such as premium content for your app and subscriptions for digital content.
The contract for paid applications must be in effect in order to receive data about the in app purchases configured.
This worked for me. I had the exact same problem.
https://stackoverflow.com/a/2045064/3901620
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With