-3

I want to test in-App-Purchase

What I have done:

1.Created Certificate/AppId/Provisioning

2.Bundle Id of my app : com.sample.product

  1. Set Up an app in itunesConnect.

  2. product Identifier of my app which i have to buy: com.sample.product.buy

I have followed and implemented all steps from here:

steps i followed

No I get NSLog value : Product Not Availabel

I checked for issues like:

  1. Different product id
  2. Cleared for sale
  3. Waited 4 days

Why I am getting this error? What I missed?

When I open app in itunes.connect and select In-App-Purchase am getting this message at the top of screen:

enter image description here

Is it OKAY ? Or due this warning message I am getting Product Not Available message ?

Community
  • 1
  • 1
Rahul
  • 5,594
  • 7
  • 38
  • 92

2 Answers2

1

Open itunes connect. Select Agreement, Tax,and Banking tab. Add your bank account details for "Paid Applications" than above waring will not appear.

enter image description here

Sandeep Agrawal
  • 425
  • 3
  • 10
0

In-app purchase is broadly made up of 3 distinct steps:

1 - Getting products from itunes store and displaying them on UI (Store UI which displays product titles, description, price in user-understandable way)

2 - Providing mechanism for user to purchase products from UI (IBActions that enable "Buy" action)

3 - Handling post-purchase (handle successful purchase by unlocking the product, handle failed purchase by displaying user-understandable error, and handle future restore for non-consumable products as they must not be purchased again as per the rules set by Apple)

This is what you must do. And there are no set "steps" for any app. Every app has it's own way of selling IAP items, and you must define yours. Give ample thought about each step, instead of trying to get things working anyway. In-app purchase is fun to troubleshoot, but does not yield results if done badly. More you do it "user-friendly" & business-like way, more you benefit from it.

If you need step by step tutorial on how to integrate IAP - here is my own tutorial to simplify what I wrote above.

If you need more efficient solution, here is video lecture series with SWIFT and Objective C. It also accompanies code sample.

Nirav Bhatt
  • 6,940
  • 5
  • 45
  • 89