Swiftystorekit: Invalid Product Identifier on purchase

Created on 17 Oct 2018  路  9Comments  路  Source: bizz84/SwiftyStoreKit

I just discovered this awesome project and when I tried using the demo project for iOS with my IAP setup properly I get Invalid product identifier so I have decided to take screen shot of my process with hopes of getting it fixed up because i went through all issues here and I couldn't get a fix.

  • My Appstoreconnect App icon
    app icon on ac

  • App information
    app info

  • IAP type
    iap type

  • display name
    display name

  • pricing with product ID
    product id

  • Xcode target configuration
    target bid

  • code appBundle
    screen shot 2018-10-17 at 9 14 58 pm

  • Console log
    screen shot 2018-10-17 at 9 16 06 pm

if there is anything I am not doing right kindly point it out and I am sure this would serve a lot of people too. Thanks

answered question

Most helpful comment

Check if you enable In-App Purchase . Click on your project and find capabilities - > enable In-App Purchase. Thats help me)

All 9 comments

Check if you enable In-App Purchase . Click on your project and find capabilities - > enable In-App Purchase. Thats help me)

Check bank info. You need have Paid Applications in Contracts In Effect

@AdieOlami did you ever get this to work as I am having the same issue and I'm running out of things to try.

Same problem

After running in to this issue on macOS I changed the call to purchase from

SwiftyStoreKit.purchaseProduct(appBundleId + "." + purchase.rawValue, atomically: true) { result in

as used in the Mac demo to

SwiftyStoreKit.purchaseProduct(purchase.rawValue, atomically: true) { result in

and that worked for me

I solved my problem, I needed to update my contract with the data and after getting active, I managed to use the IAP.

Another detail is that the product ID sent must be the same as the product ID registered in the plan, _without any additional Bundle identifier information_:

SwiftyStoreKit.purchaseProduct(subscription.productId, atomically: true) { result in

Screen Shot 2019-03-14 at 11 51 24
.

I solved my problem, I needed to update my contract with the data and after getting active, I managed to use the IAP.

Another detail is that the product ID sent must be the same as the product ID registered in the plan, without any additional Bundle identifier information

SwiftyStoreKit.purchaseProduct(subscription.productId, atomically: true) { result in

Screen Shot 2019-03-14 at 11 51 24
.

Exactly what helped me! +1

Same problem. Nothing mentioned earlier did not help.

@snowtema Did you try what @moquiutijunio and @fabulouspanda mentioned -- removing the prefixed bundle information?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DClark5218 picture DClark5218  路  5Comments

astrokin picture astrokin  路  4Comments

odedharth picture odedharth  路  8Comments

andresmontelpare picture andresmontelpare  路  9Comments

mickyzinho picture mickyzinho  路  3Comments