IAP Badger product name and Apple IAP Reference name do they need to be the same?

hello

this should be a simple question where the IAP Badger product name and Apple Store IAP name should be the same or not?

in my code I have the following

–A list of product names or identifiers specific to apple’s App Store or Google Play.

productNames = { apple=“UnblockApp”, google=“UnblockApp”, amazon=“UnblockApp”},

in the Apple Store I have an IAP with the reference name “UnblockApp”.

should these two name be the same to make my IAP work? or is there some other reference or product id be set?

I also have the product id in the Apple Store set as com.mycompanyname.myappname.xxxxxx, where xxxx is my App Apple ID.

however when I try to make a purchase in my App via the App Store, I connect to App Store every thing looks good but then nothing happens. is there something I am missing in the settings from Apple Store to IAP Badger code.

regards

bruce.

Hi Bruce,

In IAP Badger, the two names can be anything you want - they don’t have to be the same.

However, you should set apple=“UnblockApp” to match the exact product ID as listed in iTunes Connect.  So, in the console, if your product id is listed as com.companyname.appname.UnblockApp, then you should use  apple="com.companyname.appname.UnblockApp"

Remember you can only test IAP on an iOS device - you can’t do it through XCode.  Also make sure you’re logged into the App Store in your device as one of your test users (also set up in iTunes Connect).

Kind regards,

Simon

ok, so I need to set in the App code 

–A list of product names or identifiers specific to apple’s App Store or Google Play.

productNames = { apple=“product id from iTunesConnect”, google=“id from google store”, amazon=“id from amazon”},

Correct?

 

if so then this needs to be made more clear in your examples as I was using the Reference Name from iTunes Connect, not the Product ID as you suggest above.  Hence I was using  apple=“UnblockApp” which now turns out to be NOT correct**?**

Hi Bruce,

In IAP Badger, the two names can be anything you want - they don’t have to be the same.

However, you should set apple=“UnblockApp” to match the exact product ID as listed in iTunes Connect.  So, in the console, if your product id is listed as com.companyname.appname.UnblockApp, then you should use  apple="com.companyname.appname.UnblockApp"

Remember you can only test IAP on an iOS device - you can’t do it through XCode.  Also make sure you’re logged into the App Store in your device as one of your test users (also set up in iTunes Connect).

Kind regards,

Simon

ok, so I need to set in the App code 

–A list of product names or identifiers specific to apple’s App Store or Google Play.

productNames = { apple=“product id from iTunesConnect”, google=“id from google store”, amazon=“id from amazon”},

Correct?

 

if so then this needs to be made more clear in your examples as I was using the Reference Name from iTunes Connect, not the Product ID as you suggest above.  Hence I was using  apple=“UnblockApp” which now turns out to be NOT correct**?**