First time IAP installer could use some help

Hi everyone,

This is where I’m at.

  1. IAP badger was installed when building the app and all products have been tested multiple times without appstore connected. On simulator and devices.

  2. All the Prodcuts have been created in Itunes connect and added to version 1.0 of the app.

  • Products are in status ‘Ready to submit’
  • APP is in status ‘Prepare to submit’
  1. Sandbox test users have been created.

  2. All products have their productNames match the product ID.

-(I did not use bundleID as a prefix for them, not sure if this was required or just best practice)

  1. I’ve signed out of itunes account on test devices and tried to make purchases by then entering in the sanbox test users.

(I verified email address and tested on 1 sandbox user as well.)

I get a failed Listener when doing these steps to test. I hope that I’m missing something really obvious.

ItunesConnect has been having some really bad login issues recently and maybe it could be that.
 

Thank you for any help!

Can you provide more data on what you mean by “failed listener”?

Are you getting errors?

What are they?

Be as descriptive as you can please.

Rob

Hey Rob,

No errors at all.

It hits the failed listener function in the iapbadger options.

I just tried to test using test flight and it gives me the same outcome visually, not sure the console output.

Once you create the IAP inside itunes connect, and they are in status ‘Ready to submit’. Those can be hit by testing on devices?
 

Simon will have to help you with IAP Badger.  Still if you can tether your test device to your Mac, you can use Xcode and go to Window-Devices and watch the console log there for any error messages.

Yes, once the IAP’s are in a “Ready to submit” state, your testing device should be able to see them.

Rob

Your failed listener will receive two arguments:

function transactionFailedListener(productName, event)

event will contain the original transaction information table passed back by Corona - this may include some useful info about what is happening here.  Try outputting it out to the console / screen and see what it says (you won’t be able to just use the  print function though because it’s a table, not a string).

Kind regards,

Simon

Hey Simon,

Thanks for the response.

errorType=unknown

errorString= Cannot connect to iTunes Store

I’m using sandbox users I’ve created and making sure they are not signed in within settings.

So it’s either completely there issue or some sort of Cert issue.
 

Are you building the app with the app’s specific provisioning profile (rather than a general test profile)?

Simon

Yes.
Testing on device, I was using app’s specific provisioning development profile.

Testing on test flight, used app’s specific provisioning distribution profile.

Just to check - you’ve entered all of the metadata for your IAP?

Does the loadProducts function work at all?

Simon

Yes,
The products are all ‘ready to submit’.

I think I might have figured out my issue.

https://developer.apple.com/library/content/technotes/tn2259/_index.html

I skipped step one. Will test again once that is completed.

Hi!

I have a problem with iOS version. My app is “ready for sale” on App Store, I downloaded it in my iPad but when I press buy button nothing happens?!?!?!?

In Google Play all is ok, thank you for any help!

Can you hook your iPad up to your computer, run Xcode and go to Windows->Devices and select your iPad.  There will be a small area at the bottom that shows the console log. It’s going to display a lot of un-important data to your issue. You can drag up on the thin line and make the window bigger so you can see more.

Run your app and when you hit the buy button look for any errors. You might need to copy/paste the log data out to a text editor for easier looking through it.

Rob

Thanks Rob,

One strange thing that happens is that with my developer profile I can check the functionality but with the distribution profile (other user in the App Store) nothing happens

Simon and Rob,

I figured out my issue. I had not setup banking information/ tax documents for developer account.
 

So you cannot test the IAP products without all your documents completed and processed by apple.

Thanks for the all the help. It is working flawlessly now those documents are completed.

Glad everything’s working for you :slight_smile: