When purchasing applications using SwifyStoreKit, it is not possible to obtain product information

I use IAP in my iOS application and I use the latest version of SwiftyStoreKit Framework to help me with my purchases.

I completed all the tasks of the preliminary cursor, such as setting up a developer account in itunes connect, creating Provision profiles for the application, making new expendable and non-consumer purchases in TestFlight, adding these purchases to the application information (ready to be sent), and creating a sandbox user . I debugged the following this answer , this and this one .

Now the problem is that whenever I send a request for product information, I get the following error. RetrieveResults(retrievedProducts: Set([]), invalidProductIDs: Set(["com.mycompany.app.consumable"]), error: nil)

and when I try to purchase a product, I get this error Purchase Failed: SKError(_nsError: Error Domain=SKErrorDomain Code=3 "Invalid product id: com.mycompany.app.consumable" UserInfo={NSLocalizedDescription=Invalid product id: com.mycompany.app.consumable})

Recovering purchases and checking receipts seems to work fine ...

Any pointers would be very helpful.

Thanks.

UPDATE:

Now I left the SwiftyStoreKit structure and use Apple’s own way to use SKProductsRequest Apple, where I configured the delegate functions and all the requirements, then I run the SKProductsRequest.start () function call, and it still returns me a set of invalid product identifiers.

For the new method, I am setting up a new project, as well as preparation profiles for package identifiers and the itunes connect application. I can download the itunes connection app for testflight too! So the identifiers seem correct.

+8
ios swift3 in-app-purchase
source share

No one has answered this question yet.

See similar questions:

83
StoreKit In-App Invalid Product Identifiers
eleven
iOS in app purchase - no products
7
IOS In-App Purchases: Invalid Sandbox Product ID

or similar:

47
Reasons for SKProductsRequest to return 0 products?
7
Code SKErrorDomain = 0 in the application for purchases
7
Buying an Apple In-App
6
In-app purchase returns 0 products and product identifiers as invalidProductIdentifier
3
In-app purchase, always invalid product id
2
Suddenly get the code SKErrorDomain = 0 in the response to the purchase of the application
one
In -app, when buying a live product, an error appears: cannot connect to the iTunes Store
one
Recover transaction when purchasing iOS in application
0
App rejected for app purchase error
0
xcode in-app purchase invalid product id

All Articles