SwiftyStoreKit icon indicating copy to clipboard operation
SwiftyStoreKit copied to clipboard

Invalid Product Identifier on purchase

Open AdieOlami opened this issue 5 years ago • 12 comments

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

AdieOlami avatar Oct 17 '18 20:10 AdieOlami

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

BoikoArtem30091994 avatar Oct 19 '18 11:10 BoikoArtem30091994

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

anhhtbk avatar Oct 25 '18 09:10 anhhtbk

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

craigdennis avatar Mar 04 '19 18:03 craigdennis

Same problem

moquiutijunio avatar Mar 08 '19 14:03 moquiutijunio

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

fabulouspanda avatar Mar 09 '19 07:03 fabulouspanda

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 .

moquiutijunio avatar Mar 14 '19 15:03 moquiutijunio

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

29satnam avatar Jul 12 '19 15:07 29satnam

Same problem. Nothing mentioned earlier did not help.

snowtema avatar Mar 21 '20 12:03 snowtema

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

Sam-Spencer avatar Mar 21 '20 22:03 Sam-Spencer

The problem was solved by App Store Connect itself. It was a new app submitted to App Store, after approved, there was only one non-renewal consumable item could work. Originally, the app has 5 items with non-renewal consumable plan. After it approved, I thought my code was wrong somewhere, but 8 hours later, all 5 items could work, and the process of In-App Purchases was running well. I guess this is the time in force without doubtlessly.

VictorZhang2014 avatar Feb 23 '21 03:02 VictorZhang2014

Hei, what to do if the status box is "Ready to submit"???

What should i do to get the product "active"

Mihai-github avatar Feb 22 '22 15:02 Mihai-github

After active paid app agreement, you should add your product in In-App purchase and Subscription section in App version page. My issue fixed with this scenario.

Savvy-Vijay avatar Mar 29 '24 10:03 Savvy-Vijay