In-App-Purchasing iPhone application? - iphone

I am facing problem on In-App-Purchasing in my iPhone/iPad application.
My Issues are :
1> What is the use of Shared Secret - Where we have to use this?.
2> How we can all our application form store?
3> How we can test our application?
4> To enable in app purchase - We need application on app store?
Please give me some guide line for implementing in app purchasing.
Thank you.
I am gone through the apple process to enable in app purchase but I dn't know what I missed in my steps that's why I need more clear steps to understand the In-App-Purchasing with in my application?
Basically I need full steps for In-App-Purchasing.
Thank you.

Start with reading the Apple "In App Purchase Programming guide": https://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/StoreKitGuide/Introduction/Introduction.html

1)http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/StoreKitGuide/RenewableSubscriptions/RenewableSubscriptions.html YOU CAN FIND YOUR ANSWER HERE.
2)Sorry, didn't get you on this one
3) To test in-app-purchase
step1: log into iTunes connect, Navigate to manage your applications-->add new application (FILL THE INFORMATION)--> Availability date can be set at a later stage, select the price range-->enter the METADATA.
step2: Navigate to contracts, Tax & banking section in Itunes Connect & complete the IOS PAID APPLICATIONS CONTRACT.(Enter bank details, tax & contacts).If your app is free complete IOS FREE APPLICATIONS CONTRACT as well.
step3: Navigate to the manage users section & create a TEST user account.
step4: ADD products to your application.
step5: Transfer the application to your device using developer provisioning profile. The developer provisioning profile should use the SAME BUNDLE ID which was used while adding the application. before transferring the application navigate to settings--> store--> logout from any iTunes user account.
4) There IS NO NEED for APPLICATION TO BE ON APP STORE TO ENABLE IN APP PURCHASES.

I don't fully understand what you exactly need
Apple has a really good documentation on The Store Kit framework.
http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/StoreKitGuide/Introduction/Introduction.html
I myself never created something for in-app purchase but to clarify a little bit.
I believe there are 2 ways to implement this
one is writing predefined stuff in youre source
for example, in infinity blade they let you buy extra gold.
The user asks for the list of available purchases from the app store the app store produces a list of in-app identifiers (which are predefined in code and on itunes connect)
the user selects for example "10.000 extra gold" for 0.99 dollar cents
The transaction will be made to the app store, the app store after succes returns a ok message in which the code should have a listener implemented that basically in this example add 10.000 to your "currentGold" variable.
The other way I don't know much about is connecting via an app to app store which in his turn connects to a server that is set up by you.
From what I can gather is that is what is being uses for level unlocks in for example sudoku games etc
as for Testing the purchase.
Whenever you have store kit implemented and try to connect it in the iOS Simulator.
The simulator automatically connects to a Sandbox envirenmont and therfore simulates the payment too

Related

In App purchase and paypal

I have to create an application in which the user are of two types : basic and premium.
Now the problem in that a user can change its type using website and from iPhone application as well.
So tell me is there any issue if we allow user to change the user type
either from application or from website i.e. using Paypal.
As per the guidelines of apple we can not unlock any feature in the application using any other mode except InApp purchase.
So please advice.
As you already discovered:
As per the guidelines of apple we can not unlock any feature in the application using any other mode except InApp purchase.
Which means that you cannot let users change their type from any other source, the reason is simple: Apple gets part of the income from every in app purchase, i.e. you need to play by the rules and use only their app store network for selling any type of content to the user.

ios-provisioning-portal for PushSharp

I want to develop demo application at my development machine.
Here I want to use pushsharp for mobile Notifications and further I want to use it on
iphone.
For pushsharp integration with iphone I requires ios provisioning
reference: https://github.com/Redth/PushSharp/wiki/How-to-Configure-&-Send-Apple-Push-Notifications-using-PushSharp
But https://developer.apple.com is asking for $99 dollars for it use.
So here my question is that Is there any free/developer key is available to this or I need to purchase this.
I need to show some demo before going to purchase any thing.
please help me on this.
Thanks
Apple recommended that developer use the code singing when they want to test application on device. So for that purpose developer have to purchase such a/c. for create provisioning profile and certificates.
you can found more information at developer portal regarding setup profile check this. Also for APNS have to set that enabled in your app id.
You can test your app in Simulator without purchase of $99.
But if you want to test your app in physical device then you must have to purchase developer account of $99.
Also if you want to test APNS then also you need this purchasable account.
So, I recommended to purchase it for other benefits as well.

What is necessary to upload to iTunes Connect for Store Kit testing?

Most tutorials I've been able to find are dated and inconsistent with regard to what is actually necessary to have uploaded and approved in iTunes Connect. Following one tutorial I uploaded incomplete binary and rejected it. I then added an In App Purchase Item. I uploaded an image and filled in all the registration information.
So currently,
App - Status -- Developer Rejected
In App Purchase Item -- Ready to Submit
I am able to make requests to the store kit, but I am getting 0 results. Is it possible to get results with my current iTunes Connect statuses?
Edit: I appreciate the trouble shooting advice. But I want to make sure that it is in fact possible to retrieve purchase items with the above statuses.
Make sure that you provided all the details for the app including the in app purchase details along with screen shot.
Next is to make sure that the app ID's are same in server and in the app.
When testing in-app purchase, create test account in app store and use it for testing. Make sure that the mail you are using is not existing. Also on your device, you have to use those test credentials to test the app.
Hope this helps.
Yes, it is possible as I just managed to do it. My problem was tax info. Thanks to Paul Mason, your comment was the correct answer!

Xcode iPhone Development - ecommerce app

I've read Apple don't allow you to create your own e-commerce iPhone app and integrate into Paypal, some payment gateway and you should only use/ go through the app store using the storekit. How do other companies such as Amazon do it?
Any links to any extra reading would be great,
Thanks in advance.
You must use storekit if your products are all virtual. But if the products are physical (the case with Amazon) then you must not use in app purchase (storekit) and must process payment on your own. Check In App Purchase Programming Guide for the details.

iPhone/iPad app rejected because of subscription model?

We intend to launch a free iPhone/iPad app on the AppStore.
The content will actually be accessible thanks to a subscription model (login/pwd authentication in iPhone app).
The subscription (about 100$ a month) is handled via a dedicated web server.
If used without subscription, this app will provide minimum value.
Does anyone know if this kind of subscription model can be rejected by Apple ?
I know some apps follow this model, but I'd like to have your thought on this before starting in this direction.
Thanks for your answer.
This is fine AFAIK - As long your app is free and you put in the description that it requires a subscription to whichever service. When you submit the app, you'll need to hand over details to a test account to Apple so that they can test it, but other than that it's no hassle at all.
I know of an app which works just like that on the app store right now - Spotify for iPhone. It's a music playing app which streams music from the web - but you need a Spotify premium account. When you first open the app, you have to sign in, and if you don't have a premium account it just tells you that you're not allowed in!
Javawag
There are plenty of apps which only work if I have an account somewhere, and some for which I have to pay for that account so, without knowing the specifics, there is nothing which immediately rules out your subscription model. There are even Apple apps, iDisk for example, which are useless if you don't have a $100 mobile me subscription.
If there are issues you can look at selling your subscription as an in app purchase (apple will take their 30% which should make them happy) or look at making the app more functional without the subscription.
Either way, when submitting for approval make sure to set up a sample account with a full subscription that the apple testers can use (there is space in the submission for including logins for this kind of thing).
Our app, previously approved, update was just rejected because we sell subscriptions through our website. (We have been doing this for 15 years, without giving Apple 30% of our money.) They are requiring that all subscriptions for iphone/ipad content go through in-app purchasing. I guess we will be looking at building a browser based app instead.
Cheers,
Gerry